Fix(images): don't estimate an image if there are only images for 'panoramax:menu'

This commit is contained in:
Pieter Vander Vennet 2025-07-10 03:08:43 +02:00
parent b63e9c0262
commit 0b5b56b48a

View file

@ -112,7 +112,7 @@ export default class AllImageProviders {
if (AllImageProviders.dontLoadFromPrefixes.some((prefix) => v.startsWith(prefix))) {
continue
}
if (k === prefix || k.startsWith(prefix + ":")) {
if (k === prefix || k.match(new RegExp(prefix + ":[0-9]+"))) {
count++
continue
}