We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04241c0 commit 68fd7f8Copy full SHA for 68fd7f8
comprehensive-demo-react16/e2e/checkApp1.spec.ts
@@ -38,7 +38,8 @@ const routingParagraphs = [
38
'The "Bar" tab also lazily renders the styled-component Button from the UI Library demo only when rendered.',
39
];
40
41
-const escapeRegExp = (value: string) => value.replace(/[-/\^$*+?.()|[\]{}]/g, '\$&');
+const escapeRegExp = (value: string) =>
42
+ value.replace(/[-/\^$*+?.()|[\]{}]/g, match => `\\${match}`);
43
44
const expectAppBar = async (page: Page, title: string) => {
45
const appBar = page.locator('header').first();
0 commit comments