summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/padding-line-between-statements.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/padding-line-between-statements.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/padding-line-between-statements.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/node_modules/eslint/lib/rules/padding-line-between-statements.js b/tools/node_modules/eslint/lib/rules/padding-line-between-statements.js
index c999588544..7d37870a48 100644
--- a/tools/node_modules/eslint/lib/rules/padding-line-between-statements.js
+++ b/tools/node_modules/eslint/lib/rules/padding-line-between-statements.js
@@ -17,10 +17,11 @@ const astUtils = require("../util/ast-utils");
const LT = `[${Array.from(astUtils.LINEBREAKS).join("")}]`;
const PADDING_LINE_SEQUENCE = new RegExp(
- String.raw`^(\s*?${LT})\s*${LT}(\s*;?)$`
+ String.raw`^(\s*?${LT})\s*${LT}(\s*;?)$`,
+ "u"
);
-const CJS_EXPORT = /^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/;
-const CJS_IMPORT = /^require\(/;
+const CJS_EXPORT = /^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u;
+const CJS_IMPORT = /^require\(/u;
/**
* Creates tester which check if a node starts with specific keyword.