From 4fcbd6be6a5129ad45255d61c818b1407b6d453a Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Sun, 11 Sep 2022 22:08:26 +0200 Subject: [PATCH] comment: use filenamify? --- util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.js b/util.js index 62fc42e..266b7cc 100644 --- a/util.js +++ b/util.js @@ -20,7 +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, '_'); +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 const newStealthContext = async (browser, contextOptions = {}, debug = false) => {