« get me outta code hell

external-links: cleaner www logic - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-29 20:28:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-29 20:41:54 -0300
commit2e904ae8ef980073860387bc66ae6efe95a17cc0 (patch)
treedcc5203ea52952b3085b13687ca463590a068f67
parent7afce11de0f3ba5432372a773cfb3e8d135b76fe (diff)
external-links: cleaner www logic
-rw-r--r--src/util/external-links.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/external-links.js b/src/util/external-links.js
index 46d6e0e9..edef0701 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -529,7 +529,7 @@ export function getMatchingDescriptorsForExternalLink(url, descriptors, {
       // "www" is never an acceptable subdomain for this purpose.
       // Sorry to people whose usernames are www!!
       if (domain.startsWith('www.')) {
-        break matchSubdomain;
+        return false;
       }
 
       return domain.endsWith(string);