Allow '|' in regex key values to allow rewrites, see #1075

This commit is contained in:
Pieter Vander Vennet 2022-09-10 14:00:33 +02:00
parent f7002ce315
commit 6e3961c92d

View file

@ -354,7 +354,7 @@ export class TagUtils {
value: string value: string
modifier: "i" | "" modifier: "i" | ""
} | null { } | null {
const match = tag.match(/^([_a-zA-Z0-9: -]+)(!)?~([i]~)?(.*)$/) const match = tag.match(/^([_a-zA-Z0-9: -|]+)(!)?~([i]~)?(.*)$/)
if (match == null) { if (match == null) {
return null return null
} }