mirror of https://github.com/grafana/grafana.git
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:
parent
886d8fae36
commit
c59ebfc60f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue