fix(lua): injection eq should be any-of (#4711)

This commit is contained in:
Amaan Qureshi 2023-04-25 22:42:06 -04:00 committed by GitHub
parent 82bcd8483e
commit b0fe9cea0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@
(function_call
(dot_index_expression
field: (identifier) @_method
(#eq? @_method "gmatch" "gsub"))
(#any-of? @_method "gmatch" "gsub"))
arguments: (arguments (_) (string content: _ @luap)))
; ("123"):match("%d+")