diff --git a/.scripts/version.js b/.scripts/version.js index e324a959dff..9df28270b82 100755 --- a/.scripts/version.js +++ b/.scripts/version.js @@ -75,7 +75,7 @@ async function getFiles(dir) { const pUnlink = Promise.all( (await getFiles('./assets/js')) - .filter(f => f.includes(vPrev)) + .filter(f => f.match(/assets\/js\/*hydejack-*/i)) .map(unlink) );