Remove check on no '&' in value, fixes #1281

This commit is contained in:
Pieter Vander Vennet 2023-01-29 13:40:01 +01:00
parent 3c7d632739
commit 19b381e8b0

View file

@ -18,12 +18,6 @@ export class Tag extends TagsFilter {
if (value === "*") {
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(", ")}]}'`
}
}
/**