Merge branch 'master' into develop

This commit is contained in:
Pieter Vander Vennet 2024-09-24 19:19:00 +02:00
commit 3aae6d7b5c
2 changed files with 4 additions and 1 deletions

View file

@ -372,7 +372,7 @@
"freeform": {
"key": "vending",
"addExtraTags": [
"fixme=Freeform input used, value may need to be checked"
"fixme=A mapcomplete user used the text field to set the 'vending'-tag, which is probably incorrect (e.g. might be in the local language, use upercase, ...)"
]
},
"render": {

View file

@ -19,6 +19,9 @@ export class Tag extends TagsFilter {
if (value === undefined) {
throw `Invalid value while constructing a Tag with key '${key}': value is undefined`
}
if(value.length > 255 || key.length > 255){
throw "Invalid tag: length is over 255"
}
if (value === "*") {
console.warn(`Got suspicious tag ${key}=* ; did you mean ${key}~* ?`)
}