fix(ecma_injections): limit function names to alphanumeric characters only

This commit is contained in:
Tobias S 2023-08-31 15:41:07 +02:00 committed by GitHub
parent 9361484fa4
commit 8e9cc89955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@
(template_string) @injection.content)
(template_string) @injection.content
]
(#lua-match? @injection.language "^[a-zA-Z][a-zA-Z0-9]*$")
(#offset! @injection.content 0 1 0 -1)
(#not-eq? @injection.language "svg"))