mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
NoAppsAllowed Fix
This commit is contained in:
parent
f9d908a4f0
commit
225c99ad4c
3 changed files with 6 additions and 6 deletions
|
@ -27,6 +27,8 @@ export function canonicalizeMatch<T extends RegExp | string>(match: T): T {
|
|||
const isString = typeof match === "string";
|
||||
const hasSpecialChars = !Number.isNaN(Number(hashed[0])) || hashed.includes("+") || hashed.includes("/");
|
||||
|
||||
if (modifier === "hash") return hashed;
|
||||
|
||||
if (hasSpecialChars) {
|
||||
return isString
|
||||
? `["${hashed}"]`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue