perf: remove match where possible

This commit is contained in:
Amaan Qureshi 2023-04-21 04:06:20 -04:00
parent 654216eb04
commit 85330918f0
37 changed files with 104 additions and 113 deletions

View file

@ -90,7 +90,7 @@
(assignment_expression
left: (member_expression
property: (property_identifier) @_prop
(#match? @_prop "(out|inn)erHTML"))
(#any-of? @_prop "innerHTML" "outerHTML"))
right: (template_string) @html
(#offset! @html 0 1 0 -1))
@ -98,6 +98,6 @@
(assignment_expression
left: (member_expression
property: (property_identifier) @_prop
(#match? @_prop "(out|inn)erHTML"))
(#any-of? @_prop "innerHTML" "outerHTML"))
right: (string) @html
(#offset! @html 0 1 0 -1))