Skip to content

Commit 4f16cea

Browse files
committed
use regex for "to="
1 parent 5267aea commit 4f16cea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/parsers/harmony.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ void harmony_msg_parser::final() {
5555
}
5656

5757
void harmony_msg_parser::commentary() {
58-
if (builder.try_consume_literal(" to=")) {
58+
static const common_regex to(" to=");
59+
if (builder.try_consume_regex(to)) {
5960
user_function();
6061
}
6162
}

0 commit comments

Comments
 (0)