Skip to content

Commit e6b301c

Browse files
josephperrottthePunderWoman
authored andcommitted
fix(core): remove unnecessary escaping in regex expressions (#51554)
Correct various Useless regular-expression character escape issues. PR Close #51554
1 parent 4038335 commit e6b301c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/test/acceptance/standalone_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ describe('standalone components, directives, and pipes', () => {
765765
tag}' is an Angular component, then verify that it is included in the '@Component.imports' of this component.`;
766766
const message2 = `2. If '${
767767
tag}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.`;
768-
return new RegExp(`${prefix}\s*\n\s*${message1}\s*\n\s*${message2}`);
768+
return new RegExp(`${prefix}s*\ns*${message1}s*\ns*${message2}`);
769769
};
770770

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

0 commit comments

Comments
 (0)