From 363541c8e7d49f799a7604c3d62256ef41faea12 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 24 Jan 2023 11:42:17 +1100 Subject: Update client cacher to allow numbers in extensions ( for woff2 ) --- scripts/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/client.js b/scripts/client.js index bc68547b..54a30863 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -226,7 +226,9 @@ const processFile = async (asset) => { ...[...text.matchAll(/\.exports=.\..\+"(.*?\..{0,5})"/g)].map( (x) => x[1], ), // anything that looks like e.exports="filename.ext" - ...[...text.matchAll(/\/assets\/(.*?\.[a-z]{0,5})/g)].map((x) => x[1]), // commonly matches `background: url(/assets/blah.svg)` + ...[...text.matchAll(/\/assets\/(.*?\.[a-z0-9]{0,5})/g)].map( + (x) => x[1], + ), // commonly matches `background: url(/assets/blah.svg)` ]); return [...ret].map((x) => x.replaceAll('"', "")); -- cgit 1.4.1