Skip to content

Commit

Permalink
fix(core): remove unnecessary escaping in regex expressions (#51554)
Browse files Browse the repository at this point in the history
Correct various Useless regular-expression character escape issues.

PR Close #51554
  • Loading branch information
josephperrott authored and thePunderWoman committed Aug 29, 2023
1 parent 4038335 commit e6b301c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/test/acceptance/standalone_spec.ts
Expand Up @@ -765,7 +765,7 @@ describe('standalone components, directives, and pipes', () => {
tag}' is an Angular component, then verify that it is included in the '@Component.imports' of this component.`;
const message2 = `2. If '${
tag}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.`;
return new RegExp(`${prefix}\s*\n\s*${message1}\s*\n\s*${message2}`);
return new RegExp(`${prefix}s*\ns*${message1}s*\ns*${message2}`);
};

it('should warn the user when an unknown element is present', () => {
Expand Down

0 comments on commit e6b301c

Please sign in to comment.