Browse Source

Make the check for Wikipedia URLs slightly stricter

Cynser 6 years ago
parent
commit
d957198fd6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/web/HTMLOperation.mjs

+ 1 - 1
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 `<a href='${url}' target='_blank'>More Information<i class='material-icons inline-icon'>open_in_new</i></a>`;
     }