Skip to content

Commit 32b90a8

Browse files
author
Alvaro Muñoz
committed
Fix ruby regexp for hotspots
1 parent 5dd2103 commit 32b90a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/hotspots/scripts/lib/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
GETSINKEXPR_RUBY = """
2323
DataFlow::ExprNode getSinkExpr(DataFlow::Node n) {
2424
result = n and
25-
not n.getLocation().getFile().getRelativePath().regexpMatch("(^|.*/)test/.*|(^|.*/)spec/.*|^\\.rubocop/.*|^Gemfile$|.*/extconf.rb$|.*/setup.rb$")
25+
not n.getLocation().getFile().getRelativePath().regexpMatch("(^|.*/)test/.*|(^|.*/)spec/.*|^\\\\.rubocop/.*|^Gemfile$|.*/extconf.rb$|.*/setup.rb$")
2626
}
2727
"""
2828

0 commit comments

Comments
 (0)