allow dots (.) in condition targets

This commit is contained in:
Tuomas Kinnunen 2021-10-10 16:27:29 +03:00 committed by Yuxuan Shui
parent 9366f67795
commit 6bf0478d29
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 2 additions and 2 deletions

View File

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