Fix build

This commit is contained in:
Pieter Vander Vennet 2025-04-10 02:05:12 +02:00
parent e81b0d10ea
commit c65808bcd2

View file

@ -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 === "") {