Skip to content

Commit 68fd7f8

Browse files
chore: regenerate lockfile and fix regex escape
1 parent 04241c0 commit 68fd7f8

File tree

2 files changed

+62669
-186
lines changed

2 files changed

+62669
-186
lines changed

comprehensive-demo-react16/e2e/checkApp1.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ const routingParagraphs = [
3838
'The "Bar" tab also lazily renders the styled-component Button from the UI Library demo only when rendered.',
3939
];
4040

41-
const escapeRegExp = (value: string) => value.replace(/[-/\^$*+?.()|[\]{}]/g, '\$&');
41+
const escapeRegExp = (value: string) =>
42+
value.replace(/[-/\^$*+?.()|[\]{}]/g, match => `\\${match}`);
4243

4344
const expectAppBar = async (page: Page, title: string) => {
4445
const appBar = page.locator('header').first();

0 commit comments

Comments
 (0)