Skip to content

Commit 1baeca8

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

File tree

1 file changed

+1
-1
lines changed
  • devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler/timeline

1 file changed

+1
-1
lines changed

devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler/timeline/filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const queryMap: {[query in QueryType]: Query} =
8888
return map;
8989
}, {} as {[query in QueryType]: Query});
9090

91-
const queryRe = new RegExp(`!?\s*(${QueryType.Duration}|${QueryType.Source})$`, 'g');
91+
const queryRe = new RegExp(`!?s*(${QueryType.Duration}|${QueryType.Source})$`, 'g');
9292

9393
type Predicate = true|false;
9494
type QueryAST = [Predicate, QueryType, QueryArguments];

0 commit comments

Comments
 (0)