From ac3d73ca0e552f7abb69c3706160faac4c78c1a4 Mon Sep 17 00:00:00 2001 From: Martijn <1958780+MartenBE@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:08:57 +0100 Subject: [PATCH] Now also copy images without alt (#474) --- lib/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/static.js b/lib/static.js index fcea29d..19c0253 100644 --- a/lib/static.js +++ b/lib/static.js @@ -20,7 +20,7 @@ import featuredSlide from './featured-slide.js'; const files = new Set(); -const htmlImageRE = /!\[.+?\]\((.+?)\)/g; +const htmlImageRE = /!\[.*?\]\((.+?)\)/g; const htmlImageBackgroundRE = //g; const relativeDir = (from, to) => path.relative(from, to).replace(/^\.\./, '.');