diff --git a/ql/hotspots/scripts/lib/templates.py b/ql/hotspots/scripts/lib/templates.py index 63da1a49..d633d062 100644 --- a/ql/hotspots/scripts/lib/templates.py +++ b/ql/hotspots/scripts/lib/templates.py @@ -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$") } """