From 6bf0478d29988e07753567bf1fca393ff7db4f2d Mon Sep 17 00:00:00 2001 From: Tuomas Kinnunen Date: Sun, 10 Oct 2021 16:27:29 +0300 Subject: [PATCH] allow dots (.) in condition targets --- src/c2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c2.c b/src/c2.c index 3500f7b..0bad4ef 100644 --- a/src/c2.c +++ b/src/c2.c @@ -579,8 +579,8 @@ static int c2_parse_target(const char *pattern, int offset, c2_ptr_t *presult) { // Copy target name out int tgtlen = 0; - for (; pattern[offset] && - (isalnum((unsigned char)pattern[offset]) || '_' == pattern[offset]); + for (; pattern[offset] && (isalnum((unsigned char)pattern[offset]) || + '_' == pattern[offset] || '.' == pattern[offset]); ++offset) { ++tgtlen; }