chore: roll Playwright to remove empty generic nodes (#330)

This commit is contained in:
Pavel Feldman 2025-05-02 16:10:48 -07:00 committed by GitHub
parent 2c9376e50f
commit 292e75d464
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 41 additions and 48 deletions

View file

@ -70,11 +70,8 @@ export async function waitForCompletion<R>(context: Context, page: playwright.Pa
}
}
function sanitize(s: string) {
return s.replace(/[\x00-\x2C\x2E-\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g, '-');
}
export function sanitizeForFilePath(s: string) {
const sanitize = (s: string) => s.replace(/[\x00-\x2C\x2E-\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g, '-');
const separator = s.lastIndexOf('.');
if (separator === -1)
return sanitize(s);