This commit is contained in:
Nuckyz 2024-11-03 16:25:59 -03:00
parent 39de683b6e
commit b2dc81d144
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -25,7 +25,7 @@ export function canonicalizeMatch<T extends RegExp | string>(match: T): T {
const hashed = runtimeHashMessageKey(key);
const isString = typeof match === "string";
const hasSpecialChars = !Number.isNaN(Number(hashed[0])) || hashed.includes("+");
const hasSpecialChars = !Number.isNaN(Number(hashed[0])) || hashed.includes("+") || hashed.includes("/");
if (hasSpecialChars) {
return isString