comment: use filenamify?

This commit is contained in:
Ralf Vogler 2022-09-11 22:08:26 +02:00
parent 93d01bf5cf
commit 4fcbd6be6a

View file

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