From 4e86cc7ce0abfca76285f616d388441eccc323f6 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Mon, 9 Apr 2018 22:34:59 +0100 Subject: [PATCH] Anoter misplaced hatnote Former-commit-id: 4020fec7a6648c41cec4fa3f01c98a6679112436 [formerly 39a0fc81b9214768a9ea4745f60d5ea19549e28a] Former-commit-id: a1dfc680a75e150fdd025aa9d2769061f5116015 --- www/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);