mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
870e782cab
commit
21a1c1ec27
1 file changed
+1
-1
@@ -62,7 +62,7 @@ describe("search store tests", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("escapes string for using in regex", () => {
|
it("escapes string for using in regex", () => {
|
||||||
const regex = searchStore.escapeRegex("some.interesting-query\\#?()[]");
|
const regex = (searchStore as any).escapeRegex("some.interesting-query\\#?()[]");
|
||||||
|
|
||||||
expect(regex).toBe("some\\.interesting\\-query\\\\\\#\\?\\(\\)\\[\\]");
|
expect(regex).toBe("some\\.interesting\\-query\\\\\\#\\?\\(\\)\\[\\]");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user