chore: roll Playwright to remove empty generic nodes (#330)
This commit is contained in:
parent
2c9376e50f
commit
292e75d464
12 changed files with 41 additions and 48 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue