From a40444fa2f18560c78536b919184a566958a5497 Mon Sep 17 00:00:00 2001 From: Inori Date: Sun, 30 Jul 2023 06:39:19 +0800 Subject: [PATCH] Add whitespace in tag match regex --- src/exp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exp.h b/src/exp.h index c8837f0..dd488b0 100644 --- a/src/exp.h +++ b/src/exp.h @@ -139,7 +139,7 @@ inline const RegEx& URI() { return e; } inline const RegEx& Tag() { - static const RegEx e = Word() | RegEx("#;/?:@&=+$_.~*'()", REGEX_OR) | + static const RegEx e = Word() | RegEx(" #;/?:@&=+$_.~*'()", REGEX_OR) | (RegEx('%') + Hex() + Hex()); return e; }