Fix: Cache busting of plugins module.js file (#83763)

fix(plugins): make sure extractPath regex matches with and without leading slash
This commit is contained in:
Jack Westbrook 2024-03-01 18:29:39 +01:00 committed by GitHub
parent 886d8fae36
commit c59ebfc60f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export function resolveWithCache(url: string, defaultBust = initializedAt): stri
}
function extractPath(address: string): string | undefined {
const match = /\/.+\/(plugins\/.+\/module)\.js/i.exec(address);
const match = /\/?.+\/(plugins\/.+\/module)\.js/i.exec(address);
if (!match) {
return;
}