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

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

View file

@ -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
}