extract sanitizeFilename

This commit is contained in:
Ralf Vogler 2022-07-14 17:04:00 +02:00
parent 2ae513f6c0
commit f888981415
2 changed files with 4 additions and 3 deletions

View file

@ -20,6 +20,7 @@ export const jsonDb = async file => {
}
export const datetime = (d = new Date()) => d.toISOString();
export const sanitizeFilename = s => s.replace(/[^a-z0-9_\-]/gi, '_');
// stealth with playwright: https://github.com/berstend/puppeteer-extra/issues/454#issuecomment-917437212
const newStealthContext = async (browser, contextOptions = {}, debug = false) => {