diff --git a/Logic/Tags/Tag.ts b/Logic/Tags/Tag.ts index 803b79390..005fa95ba 100644 --- a/Logic/Tags/Tag.ts +++ b/Logic/Tags/Tag.ts @@ -18,6 +18,10 @@ 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(', ')}]}'` + } }