Skip to content

Commit e4814c6

Browse files
Chore: enable require-unicode-regexp on ESLint codebase (#11422)
1 parent e7af357 commit e4814c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function formatFilePath(filePath, line, column) {
4747
*/
4848
function formatMessage(message, parentResult) {
4949
const type = (message.fatal || message.severity === 2) ? chalk.red("error") : chalk.yellow("warning");
50-
const msg = `${chalk.bold(message.message.replace(/([^ ])\.$/, "$1"))}`;
50+
const msg = `${chalk.bold(message.message.replace(/([^ ])\.$/u, "$1"))}`;
5151
const ruleId = message.fatal ? "" : chalk.dim(`(${message.ruleId})`);
5252
const filePath = formatFilePath(parentResult.filePath, message.line, message.column);
5353
const sourceCode = parentResult.output ? parentResult.output : parentResult.source;

0 commit comments

Comments
 (0)