diff options
author | Brian White <mscdex@mscdex.net> | 2017-03-13 14:50:57 -0400 |
---|---|---|
committer | Franziska Hinkelmann <franzih@chromium.org> | 2017-03-29 10:53:28 +0200 |
commit | 61ebfa8d1fcb468cb95fdf3742e1672e48672b32 (patch) | |
tree | d27fc28ee4734f50b8afd8cce2ec7fa28992982d /test/parallel/test-querystring.js | |
parent | 678480e328c1fdd152973695e978e0f02b489770 (diff) | |
download | node-new-61ebfa8d1fcb468cb95fdf3742e1672e48672b32.tar.gz |
tools: add unescaped regexp dot rule to linter
PR-URL: https://github.com/nodejs/node/pull/11834
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'test/parallel/test-querystring.js')
-rw-r--r-- | test/parallel/test-querystring.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-querystring.js b/test/parallel/test-querystring.js index 1f1fe304c1..4218589226 100644 --- a/test/parallel/test-querystring.js +++ b/test/parallel/test-querystring.js @@ -110,7 +110,9 @@ const qsColonTestCases = [ const extendedFunction = function() {}; extendedFunction.prototype = {a: 'b'}; const qsWeirdObjects = [ + // eslint-disable-next-line no-unescaped-regexp-dot [{regexp: /./g}, 'regexp=', {'regexp': ''}], + // eslint-disable-next-line no-unescaped-regexp-dot [{regexp: new RegExp('.', 'g')}, 'regexp=', {'regexp': ''}], [{fn: function() {}}, 'fn=', {'fn': ''}], [{fn: new Function('')}, 'fn=', {'fn': ''}], |