From 5355f9a8eeb36d546ef550280e991ca53e612a02 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 21 Feb 2022 13:14:02 +0100 Subject: [PATCH] rm regx from heklper --- libs/remix-ui/search/README.md | 7 ------- .../search/src/lib/components/results/SearchHelper.ts | 3 --- 2 files changed, 10 deletions(-) delete mode 100644 libs/remix-ui/search/README.md diff --git a/libs/remix-ui/search/README.md b/libs/remix-ui/search/README.md deleted file mode 100644 index cf9595a10e..0000000000 --- a/libs/remix-ui/search/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# remix-ui-vertical-icons-panel - -React library for RemixIde vertical icons Panel - -## Running unit tests - -Run `nx test remix-ui-vertical-icons-panel` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/remix-ui/search/src/lib/components/results/SearchHelper.ts b/libs/remix-ui/search/src/lib/components/results/SearchHelper.ts index 3daa49f4bf..88ae6b1de1 100644 --- a/libs/remix-ui/search/src/lib/components/results/SearchHelper.ts +++ b/libs/remix-ui/search/src/lib/components/results/SearchHelper.ts @@ -104,8 +104,5 @@ export const replaceTextInLine = (str: string, searchResultLine: SearchResultLin }).join(getEOL(str)) } -export function escapeRegExp(string) { - return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string -}