forked from MapComplete/MapComplete
Add date validation, add url validation (and tracker cleaning), add date picker, close #44
This commit is contained in:
parent
78368ef543
commit
415052af8a
8 changed files with 213 additions and 48 deletions
|
@ -95,10 +95,10 @@ export class Tag extends TagsFilter {
|
|||
this.key = key
|
||||
this.value = value
|
||||
if(key === undefined || key === ""){
|
||||
throw "Invalid key";
|
||||
throw "Invalid key: undefined or empty";
|
||||
}
|
||||
if(value === undefined){
|
||||
throw "Invalid value";
|
||||
throw "Invalid value: 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