forked from MapComplete/MapComplete
Feature: add support for panoramax picturs for non-default keys (e.g. image:menu)
This commit is contained in:
parent
967f2f1617
commit
55cfd65f3b
5 changed files with 20 additions and 15 deletions
|
@ -49,7 +49,7 @@ export default abstract class ImageProvider {
|
|||
if(key === "panoramax"){
|
||||
console.log("Inspecting", key,"against", prefixes)
|
||||
}
|
||||
if (!prefixes.some((prefix) => key.startsWith(prefix))) {
|
||||
if (!prefixes.some((prefix) => key === prefix || key.match(new RegExp(prefix+":[0-9]+")))) {
|
||||
continue
|
||||
}
|
||||
const values = Utils.NoEmpty(tags[key]?.split(";")?.map((v) => v.trim()) ?? [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue