forked from MapComplete/MapComplete
Remove check on no '&' in value, fixes #1281
This commit is contained in:
parent
3c7d632739
commit
19b381e8b0
1 changed files with 0 additions and 6 deletions
|
@ -18,12 +18,6 @@ export class Tag extends TagsFilter {
|
||||||
if (value === "*") {
|
if (value === "*") {
|
||||||
console.warn(`Got suspicious tag ${key}=* ; did you mean ${key}~* ?`)
|
console.warn(`Got suspicious tag ${key}=* ; did you mean ${key}~* ?`)
|
||||||
}
|
}
|
||||||
if (value.indexOf("&") >= 0) {
|
|
||||||
const tags = (key + "=" + value).split("&")
|
|
||||||
throw `Invalid value for a tag: it contains '&'. You probably meant to use '{"and":[${tags
|
|
||||||
.map((kv) => '"' + kv + '"')
|
|
||||||
.join(", ")}]}'`
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue