Skip to content

Commit

Permalink
Updated exclude patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
luisitocanlas committed Jun 28, 2024
1 parent fd8abd0 commit 044aa1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codeql-queries/exclude-patterns.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import javascript

from File file
where (file.getExtension() = "js" or file.getExtension() = "html")
and not file.getCode().matches(".*\\{%.*%\\}.*") // Exclude Liquid code
and not file.getCode().matches(".*---.*") // Exclude YAML front matter
and not file.getCode().matches(".*\\{%-?\\s*[a-zA-Z]+.*%\\}.*") // Exclude Liquid code
and not file.getCode().matches("(?s).*---.*---.*") // Exclude YAML front matter
select file

0 comments on commit 044aa1e

Please sign in to comment.