From d957198fd65257f4ac3736d2492b7ee4c47cefdb Mon Sep 17 00:00:00 2001 From: Cynser <42423063+Cynser@users.noreply.github.com> Date: Sun, 7 Oct 2018 22:52:08 +0100 Subject: [PATCH] Make the check for Wikipedia URLs slightly stricter --- src/web/HTMLOperation.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/HTMLOperation.mjs b/src/web/HTMLOperation.mjs index 5d124708..c20defef 100755 --- a/src/web/HTMLOperation.mjs +++ b/src/web/HTMLOperation.mjs @@ -131,7 +131,7 @@ class HTMLOperation { */ function titleFromWikiLink(url) { const splitURL = url.split("/"); - if (splitURL.indexOf("wiki") < 0) { + if (splitURL.indexOf("wikipedia.org") < 0) { // Not a wiki link, return full URL return `More Informationopen_in_new`; }