From 6e3961c92d6a5e8a8211eda82cdb4e8b5d66ddf4 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sat, 10 Sep 2022 14:00:33 +0200 Subject: [PATCH] Allow '|' in regex key values to allow rewrites, see #1075 --- Logic/Tags/TagUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/Tags/TagUtils.ts b/Logic/Tags/TagUtils.ts index 32e506430..ce266a232 100644 --- a/Logic/Tags/TagUtils.ts +++ b/Logic/Tags/TagUtils.ts @@ -354,7 +354,7 @@ 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 }