Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 63eba90

Browse files
author
Dmitriy Falko
committed
fix: escape regexp
1 parent bab3c1b commit 63eba90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/application/ui/ui.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { COMMAND_START } from '../../app.constants';
99
import { SwatcherExceptionsFilter, UnhandledExceptionsFilter } from '../../filters';
1010

1111
// eslint-disable-next-line no-useless-escape
12-
const escapeRegexp = (str: string) => str.replace(/[\[\]\{\}\*\+\?\.\\\^\$\|]/g, '\\$&');
12+
const escapeRegexp = (str: string) => str.replace(/[\[\]\{\}\+\\\^\$\|]/g, '\\$&');
1313

1414
@Controller()
1515
@UsePipes(ValidationPipe)

0 commit comments

Comments
 (0)