harden resume filename cache bust patch

This commit is contained in:
2026-05-19 23:15:02 +08:00
parent 602f00262b
commit 999a1314a8

View File

@@ -61,7 +61,7 @@ function patchPublicImporters() {
for (const file of files) {
let source = fs.readFileSync(file, 'utf8');
source = source.replace(/\.\/file-D5WsIgJH\.js(?:\?v=rr-filename-20260519)?/g, `./file-D5WsIgJH.js?v=${cacheBust}`);
source = source.replace(/\.\/file-D5WsIgJH\.js(?:\?v=rr-filename-[A-Za-z0-9-]+)?/g, `./file-D5WsIgJH.js?v=${cacheBust}`);
fs.writeFileSync(file, source);
}