allow hash in url path rule

This commit is contained in:
miloschwartz 2025-03-03 19:47:07 -05:00
parent 5529beaf6e
commit 90366da61b
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -56,7 +56,7 @@ export function isValidUrlGlobPattern(pattern: string): boolean {
// - unreserved (A-Z a-z 0-9 - . _ ~)
// - sub-delims (! $ & ' ( ) * + , ; =)
// - @ : for compatibility with some systems
if (!/^[A-Za-z0-9\-._~!$&'()*+,;=@:]$/.test(char)) {
if (!/^[A-Za-z0-9\-._~!$&'()*+,;#=@:]$/.test(char)) {
return false;
}
}