diff --git a/examples/block-images.js b/examples/block-images.js index aee649b5f4c..469b25ac6a5 100644 --- a/examples/block-images.js +++ b/examples/block-images.js @@ -22,7 +22,7 @@ const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.setRequestInterceptionEnabled(true); page.on('request', request => { - if (/\.(png|jpg|jpeg|gif|webp)$/.test(request.url)) + if (/\.(png|jpg|jpeg|gif|webp)$/i.test(request.url)) request.abort(); else request.continue();