summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/curly.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-03-01 21:47:17 -0500
committercjihrig <cjihrig@gmail.com>2019-03-03 22:04:24 -0500
commit17b7fa75c345ec2ef59c489a33aa14f346d60dc5 (patch)
treed16f47fc4bdafa0db5a450b44e65a64dbbc3756c /tools/node_modules/eslint/lib/rules/curly.js
parent8c597df3502c26fba74c966168376c818b61b73b (diff)
downloadnode-new-17b7fa75c345ec2ef59c489a33aa14f346d60dc5.tar.gz
tools: update ESLint to 5.15.0
Update ESLint to 5.15.0 PR-URL: https://github.com/nodejs/node/pull/26391 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/curly.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/curly.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node_modules/eslint/lib/rules/curly.js b/tools/node_modules/eslint/lib/rules/curly.js
index ee12da7135..6803eb6cd3 100644
--- a/tools/node_modules/eslint/lib/rules/curly.js
+++ b/tools/node_modules/eslint/lib/rules/curly.js
@@ -191,7 +191,7 @@ module.exports = {
return true;
}
- if (/^[([/`+-]/.test(tokenAfter.value)) {
+ if (/^[([/`+-]/u.test(tokenAfter.value)) {
// If the next token starts with a character that would disrupt ASI, insert a semicolon.
return true;