From 19b381e8b070ee437f66a0f91cf35b1e39d39a5a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 29 Jan 2023 13:40:01 +0100 Subject: [PATCH] Remove check on no '&' in value, fixes #1281 --- Logic/Tags/Tag.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Logic/Tags/Tag.ts b/Logic/Tags/Tag.ts index d2feda2d0..945bd49b2 100644 --- a/Logic/Tags/Tag.ts +++ b/Logic/Tags/Tag.ts @@ -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(", ")}]}'` - } } /**