Skip to content

Commit

Permalink
fix(animations): remove unnecessary escaping in regex expressions (#5…
Browse files Browse the repository at this point in the history
…1554)

Correct various Useless regular-expression character escape issues.

PR Close #51554
  • Loading branch information
josephperrott authored and thePunderWoman committed Aug 29, 2023
1 parent e6b301c commit 04c6574
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -18,7 +18,7 @@ import {AnimationDslVisitor} from './animation_dsl_visitor';
import {parseTransitionExpr} from './animation_transition_expr';

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

/*
* [Validation]
Expand Down

0 comments on commit 04c6574

Please sign in to comment.