diff --git a/www/js/app.js b/www/js/app.js index 817a9d6b..e71bba39 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1677,7 +1677,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module' htmlArticle = htmlArticle.replace(/]+>[^/]*?User:Popo[^<]+<\/span>\s*/i, ""); //Put misplaced hatnote headers inside

block back in correct position @TODO remove this when fixed in mw-offliner - var hatnote = htmlArticle.match(/]+\bhatnote\b[\s\S]+?<\/div>\s*)+)/i); + var hatnote = htmlArticle.match(/]+\b(?:hatnote|homonymie)\b[\s\S]+?<\/div>\s*)+)/i); if (hatnote && hatnote.length > 1) { htmlArticle = htmlArticle.replace(hatnote[1], ""); htmlArticle = htmlArticle.replace(/(<\/h1>\s*)/i, "$1" + hatnote[1].replace(/(