mirror of
https://github.com/RobinRMC/VencordPlus.git
synced 2025-05-11 18:05:39 +02:00
Fix: Canonicalize regex finds
This commit is contained in:
parent
f74da73086
commit
54f58cd7c9
3 changed files with 16 additions and 3 deletions
|
@ -303,8 +303,10 @@ async function runtime(token: string) {
|
|||
delete patch.predicate;
|
||||
delete patch.group;
|
||||
|
||||
if (!Array.isArray(patch.replacement))
|
||||
Vencord.Util.canonicalizeFind(patch);
|
||||
if (!Array.isArray(patch.replacement)) {
|
||||
patch.replacement = [patch.replacement];
|
||||
}
|
||||
|
||||
patch.replacement.forEach(r => {
|
||||
delete r.predicate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue