diff --git a/Logic/Tags/TagUtils.ts b/Logic/Tags/TagUtils.ts index ce266a232..c4bebaa18 100644 --- a/Logic/Tags/TagUtils.ts +++ b/Logic/Tags/TagUtils.ts @@ -354,11 +354,11 @@ export class TagUtils { value: string modifier: "i" | "" } | null { - const match = tag.match(/^([_a-zA-Z0-9: -|]+)(!)?~([i]~)?(.*)$/) + const match = tag.match(/^([_|a-zA-Z0-9: -]+)(!)?~([i]~)?(.*)$/) if (match == null) { return null } - const [, key, invert, modifier, value] = match + const [_, key, invert, modifier, value] = match return { key, value, invert: invert == "!", modifier: modifier == "i~" ? "i" : "" } }