From 66be8ed3d33b25c460720bd48ade785b67651707 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Thu, 14 Dec 2017 10:26:41 +0000 Subject: [PATCH] Extraneous global flag removed Former-commit-id: 0587e86749c0cf13f0c132235c920555903f0c94 [formerly 26ad9edded176637506f7032d92980f715d75946] Former-commit-id: bb8e91d752a19f33e8b4c02da019d1c4106eaf25 --- 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 f615469c..150128f4 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1787,7 +1787,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile url = url.replace(/^[.\/]*([\S\s]+)$/, "$1"); //Some Stackexchange links (e.g. "duplicate" and "related" questions) are missing the "question" path, so add it back //Regex matches a pattern that looks like: 1234/what-is-mathematics.html and changes to: question/1234/what-is-mathematics.html - url = url.replace(/^(\d+\/[\s\S]+\.html?)$/ig, "question/$1"); + url = url.replace(/^(\d+\/[\s\S]+\.html?)$/i, "question/$1"); $(this).on('click', function (e) { var decodedURL = decodeURIComponent(url);