Skip to content

Commit 31c9649

Browse files
committed
fix: modify regexp pattern in ASInitPositiveRegExps
1 parent 4ae1ee7 commit 31c9649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Win.Function.prototype.toString = new Proxy(Win.Function.prototype.toString, {
2222

2323
const ASInitPositiveRegExps: RegExp[][] = [[
2424
/[a-zA-Z0-9]+ *=> *{ *const *[a-zA-Z0-9]+ *= *[a-zA-Z0-9]+ *; *if/,
25-
/===? *[a-zA-Z0-9]+ *\[ *[a-zA-Z0-9]+\( *[0-9]+ *\) *\] *\) *return *[a-zA-Z0-9]+ *\( *{ *inventoryId *:/,
26-
/{ *inventoryId *: *this *\[[a-zA-Z0-9]+ *\( *[0-9]+ *\) *\] *, *\.\.\. *[a-zA-Z0-9]+ *\[ *[a-zA-Z0-9]+ *\( *[0-9]+ * *\) *\] *} *\)/
25+
/===? *[a-zA-Z0-9]+ *\[ *[a-zA-Z0-9]+\( *[0-9a-z]+ *\) *\] *\) *return *[a-zA-Z0-9]+ *\( *{ *('|")?inventoryId('|")? *:/,
26+
/{ *('|")?inventoryId('|")? *: *this *\[[a-zA-Z0-9]+ *\( *[0-9a-z]+ *\) *\] *, *\.\.\. *[a-zA-Z0-9]+ *\[ *[a-zA-Z0-9]+ *\( *[0-9a-z]+ * *\) *\] *} *\)/
2727
]]
2828
Win.Map.prototype.get = new Proxy(Win.Map.prototype.get, {
2929
apply(Target: (key: unknown) => unknown, ThisArg: Map<unknown, unknown>, Args: [unknown]) {

0 commit comments

Comments
 (0)