Update packages/@romejs/js-compiler/transforms/lint/noDanglingBackslashInRegularExpressions.ts
MODIFY
packages/@romejs/js-compiler/transforms/lint/noDanglingBackslashInRegularExpressions.ts
packages/@romejs/js-compiler/transforms/lint/noDanglingBackslashInRegularExpressions.ts
@@ -20,7 +20,7 @@ export default {
if (last && last.type === 'RegExpCharacter' && !last.value) {
context.addNodeDiagnostic(last, {
category: 'lint/noDanglingBackslash',
- message: 'Found a dangling backslash in the regular expression',
+ message: 'Dangling backslash in a regular expression',
});
}
}

Update packages/@romejs/js-compiler/transforms/lint/noDanglingBackslashInRegularExpressions.ts

Co-Authored-By: Sebastian <853712+sebmck@users.noreply.github.com>