diff --git a/file/nodejs/xss-serialize-javascript.yaml b/file/nodejs/xss-serialize-javascript.yaml index c6944bb728..bd924bb702 100644 --- a/file/nodejs/xss-serialize-javascript.yaml +++ b/file/nodejs/xss-serialize-javascript.yaml @@ -14,13 +14,13 @@ file: matchers: - type: regex regex: - - "\\$S = require\\('serialize-javascript'\\)" - - "\\$S\\(..., {unsafe: true}\\)" + - "require\\('serialize-javascript'\\)" + - "\\\$S\(\.\*?, \\{unsafe: true\\}\)" condition: or - type: regex negative: true regex: - - "escape\\(...\\)" - - "encodeURI\\(...\\)" + - "escape\\(.*?\\)" + - "encodeURI\\(.*?\\)" condition: or