allow user+password to still match
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user