Skip to content

Commit 04c6574

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/animations/browser/src/dsl/animation_ast_builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {AnimationDslVisitor} from './animation_dsl_visitor';
1818
import {parseTransitionExpr} from './animation_transition_expr';
1919

2020
const SELF_TOKEN = ':self';
21-
const SELF_TOKEN_REGEX = new RegExp(`\s*${SELF_TOKEN}\s*,?`, 'g');
21+
const SELF_TOKEN_REGEX = new RegExp(`s*${SELF_TOKEN}s*,?`, 'g');
2222

2323
/*
2424
* [Validation]

0 commit comments

Comments
 (0)