Make the check for Wikipedia URLs slightly stricter

This commit is contained in:
Cynser 2018-10-07 22:52:08 +01:00
parent ec9dfd2918
commit d957198fd6

View File

@ -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>`;
}