summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/no-octal-escape.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/no-octal-escape.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/no-octal-escape.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node_modules/eslint/lib/rules/no-octal-escape.js b/tools/node_modules/eslint/lib/rules/no-octal-escape.js
index fc073b1403..a2860ca5bf 100644
--- a/tools/node_modules/eslint/lib/rules/no-octal-escape.js
+++ b/tools/node_modules/eslint/lib/rules/no-octal-escape.js
@@ -32,7 +32,7 @@ module.exports = {
return;
}
- const match = node.raw.match(/^([^\\]|\\[^0-7])*\\([0-3][0-7]{1,2}|[4-7][0-7]|[0-7])/);
+ const match = node.raw.match(/^([^\\]|\\[^0-7])*\\([0-3][0-7]{1,2}|[4-7][0-7]|[0-7])/u);
if (match) {
const octalDigit = match[2];