allow user+password to still match

This commit is contained in:
Jörg Breitbart
2024-02-22 09:55:42 +01:00
parent 5143f904ee
commit 10fe249877
2 changed files with 4 additions and 2 deletions
@@ -49,7 +49,7 @@ function isUrl(urlString: string): boolean {
: url.username
? `${url.protocol}//${url.username}@${url.host}`
: `${url.protocol}//${url.host}`;
return urlString.toLocaleLowerCase().startsWith(parsedBase);
return urlString.toLocaleLowerCase().startsWith(parsedBase.toLocaleLowerCase());
} catch (e) {
return false;
}