diff options
Diffstat (limited to 'tools/node_modules/eslint/lib/config/config-file.js')
-rw-r--r-- | tools/node_modules/eslint/lib/config/config-file.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/lib/config/config-file.js b/tools/node_modules/eslint/lib/config/config-file.js index f76b92830c..492800b7a3 100644 --- a/tools/node_modules/eslint/lib/config/config-file.js +++ b/tools/node_modules/eslint/lib/config/config-file.js @@ -61,7 +61,7 @@ const resolver = new ModuleResolver(); * @private */ function readFile(filePath) { - return fs.readFileSync(filePath, "utf8").replace(/^\ufeff/, ""); + return fs.readFileSync(filePath, "utf8").replace(/^\ufeff/u, ""); } /** @@ -73,7 +73,7 @@ function readFile(filePath) { * @private */ function isFilePath(filePath) { - return path.isAbsolute(filePath) || !/\w|@/.test(filePath.charAt(0)); + return path.isAbsolute(filePath) || !/\w|@/u.test(filePath.charAt(0)); } /** |