Fix ability to add a freeform tag when using the searchableMappings element, add test

This commit is contained in:
Pieter Vander Vennet 2022-07-13 23:05:50 +02:00
parent f805178b9b
commit 9327d96550
7 changed files with 115 additions and 72 deletions

View file

@ -13,7 +13,7 @@ export class Tag extends TagsFilter {
throw "Invalid key: undefined or empty";
}
if (value === undefined) {
throw "Invalid value: value is undefined";
throw `Invalid value while constructing a Tag with key '${key}': value is undefined`;
}
if (value === "*") {
console.warn(`Got suspicious tag ${key}=* ; did you mean ${key}~* ?`)