diff --git a/src/Logic/Tags/TagUtils.ts b/src/Logic/Tags/TagUtils.ts index 1ea422ffe..ba862fa18 100644 --- a/src/Logic/Tags/TagUtils.ts +++ b/src/Logic/Tags/TagUtils.ts @@ -840,7 +840,7 @@ export class TagUtils { } const withRegex = TagUtils.parseRegexOperator(tag) if (withRegex != null) { - if (withRegex.value === "*" && withRegex.invert) { + if (withRegex.value === "*" && withRegex.invert && typeof withRegex.key !== "string") { throw `Don't use 'key!~*' - use 'key=' instead (empty string as value (in the tag ${tag} while parsing ${context})` } if (withRegex.value === "") {