diff --git a/www/js/app.js b/www/js/app.js index 442daf47..8c41e6c5 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1896,7 +1896,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module' htmlArticle = htmlArticle.replace(/(<\/h1>\s*)/i, "$1" + hatnote[1].replace(/((?:[^<]|<(?!\/dl>))+?excerpt(?:[^<]|<(?!\/dl>))+?For other places with the same name(?:[^<]|<(?!\/dl>))+?<\/dl>\s*/i); + var noexcerpt = htmlArticle.match(/))+?(?:For other places with the same name|Not to be confused with)(?:[^<]|<(?!\/dl>))+?<\/dl>\s*/i); if (noexcerpt && noexcerpt.length) { htmlArticle = htmlArticle.replace(noexcerpt, ""); htmlArticle = htmlArticle.replace(/(<\/h1>\s*)/i, "$1" + noexcerpt);