mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
lets work alright?
This commit is contained in:
parent
d099aff45a
commit
e0098deaab
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ export function canonicalizeMatch<T extends RegExp | string>(match: T): T {
|
||||||
const isStr = typeof match === "string";
|
const isStr = typeof match === "string";
|
||||||
|
|
||||||
return /^[\d]/.test(hashed) || !/^[\w$]+$/.test(hashed)
|
return /^[\d]/.test(hashed) || !/^[\w$]+$/.test(hashed)
|
||||||
? isStr ? `["${hashed}` : String.raw`(?:\["${hashed}"\])`
|
? isStr ? `["${hashed}` : String.raw`(?:\["${hashed})`
|
||||||
: isStr ? `.${hashed}` : String.raw`(?:\.${hashed})`;
|
: isStr ? `.${hashed}` : String.raw`(?:\.${hashed})`;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue