Allow leading newlines in python's sql injections

This commit is contained in:
2025-05-14 10:14:22 +02:00
parent 07008fbdc2
commit 635c5f5228
+1 -1
View File
@@ -6,5 +6,5 @@
(string
(string_content) @injection.content
(#match? @injection.content "\\s*(SELECT|CREATE|DROP|INSERT|UPDATE|ALTER|DELETE|select|create|drop|insert|update|alter|delete)\\W+")
(#match? @injection.content "^\n*\\s*(SELECT|CREATE|DROP|INSERT|UPDATE|ALTER|DELETE|select|create|drop|insert|update|alter|delete)\\W+")
(#set! injection.language "sql"))