Skip to content

Commit

Permalink
Fix ruby regexp for hotspots
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro Muñoz committed Dec 2, 2024
1 parent 5dd2103 commit 32b90a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql/hotspots/scripts/lib/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
GETSINKEXPR_RUBY = """
DataFlow::ExprNode getSinkExpr(DataFlow::Node n) {
result = n and
not n.getLocation().getFile().getRelativePath().regexpMatch("(^|.*/)test/.*|(^|.*/)spec/.*|^\\.rubocop/.*|^Gemfile$|.*/extconf.rb$|.*/setup.rb$")
not n.getLocation().getFile().getRelativePath().regexpMatch("(^|.*/)test/.*|(^|.*/)spec/.*|^\\\\.rubocop/.*|^Gemfile$|.*/extconf.rb$|.*/setup.rb$")
}
"""

Expand Down

0 comments on commit 32b90a8

Please sign in to comment.