From 2e904ae8ef980073860387bc66ae6efe95a17cc0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 29 Mar 2024 20:28:40 -0300 Subject: external-links: cleaner www logic --- src/util/external-links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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); -- cgit 1.3.0-6-gf8a5