Skip to content

Commit 7a06582

Browse files
committed
test(angular): fix regexp
1 parent 9adf598 commit 7a06582

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/angular/test/base/e2e/src/lazy/router-link.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ function escapeRegExp(string: string): string {
66
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
77
}
88

9+
// Helper function to escape regex special characters
10+
function escapeRegExp(string: string): string {
11+
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
12+
}
13+
914
test.describe('Router Link', () => {
1015
test.beforeEach(async ({ page }) => {
1116
await page.goto('/lazy/router-link?ionic:_testing=true');

0 commit comments

Comments
 (0)