forked from MapComplete/MapComplete
Fix ability to add a freeform tag when using the searchableMappings element, add test
This commit is contained in:
parent
f805178b9b
commit
9327d96550
7 changed files with 115 additions and 72 deletions
|
@ -13,7 +13,7 @@ export class Tag extends TagsFilter {
|
|||
throw "Invalid key: undefined or empty";
|
||||
}
|
||||
if (value === undefined) {
|
||||
throw "Invalid value: value is undefined";
|
||||
throw `Invalid value while constructing a Tag with key '${key}': value is undefined`;
|
||||
}
|
||||
if (value === "*") {
|
||||
console.warn(`Got suspicious tag ${key}=* ; did you mean ${key}~* ?`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue