Browse Source

Make the check for Wikipedia URLs slightly stricter

Cynser 6 năm trước cách đây
mục cha
commit
d957198fd6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>`;
     }