diff --git a/eleventy.config.js b/eleventy.config.js index 8383df2d5..e2336aff2 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -138,7 +138,7 @@ module.exports = function(config) { const { document } = parseHTML(content); const images = Array.from(document.querySelectorAll('.article__content img')) - .filter((image) => !image.src.startsWith('http://') && !image.src.startsWith('https://')); + .filter((image) => !image.src.match(/^https?/)); if (images.length === 0) { return content;