diff options
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/func-call-spacing.js')
-rw-r--r-- | tools/node_modules/eslint/lib/rules/func-call-spacing.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/node_modules/eslint/lib/rules/func-call-spacing.js b/tools/node_modules/eslint/lib/rules/func-call-spacing.js index 62bba144e6..2237568513 100644 --- a/tools/node_modules/eslint/lib/rules/func-call-spacing.js +++ b/tools/node_modules/eslint/lib/rules/func-call-spacing.js @@ -50,8 +50,7 @@ module.exports = { type: "object", properties: { allowNewlines: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -93,8 +92,8 @@ module.exports = { return; } - const textBetweenTokens = text.slice(prevToken.range[1], parenToken.range[0]).replace(/\/\*.*?\*\//g, ""); - const hasWhitespace = /\s/.test(textBetweenTokens); + const textBetweenTokens = text.slice(prevToken.range[1], parenToken.range[0]).replace(/\/\*.*?\*\//gu, ""); + const hasWhitespace = /\s/u.test(textBetweenTokens); const hasNewline = hasWhitespace && astUtils.LINEBREAK_MATCHER.test(textBetweenTokens); /* |