chore: silence code quality warning about backslash escape
This commit is contained in:
@@ -152,7 +152,7 @@ export async function waitForPageWithText(
|
||||
|
||||
// The page may not be fully loaded and hence we need to retry.
|
||||
let findTextAttempts = 0;
|
||||
const escapedText = text.replace(/"/g, '\\"');
|
||||
const escapedText = text.replace(/(["\\])/g, '\\$1');
|
||||
for (;;) {
|
||||
try {
|
||||
browser.assert.evaluate(
|
||||
|
||||
Reference in New Issue
Block a user