fix(nix): reduce injection false positives

This commit is contained in:
figsoda 2023-01-04 15:47:45 -05:00 committed by Stephan Seitz
parent afe4e94f1a
commit 121044f0b7

View file

@ -15,7 +15,7 @@
(string_expression (string_fragment) @bash)
(indented_string_expression (string_fragment) @bash)
]
(#match? @_path "(^\\w*Phase|(pre|post)\\w*|(.*\\.)?\\w*([sS]cript|[hH]ook)|(.*\\.)?startup)$"))
(#match? @_path "(^\\w+(Phase|Hook)|(pre|post)[A-Z]\\w+|script)$"))
@combined
(apply_expression