Skip to content

Commit 6750b7f

Browse files
authored
Refactor tags_check_symbol function for clarity
1 parent 36a86a2 commit 6750b7f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎plugins/restful/adapter_handle.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ static bool tags_check_symbol(const char *tags)
6464
{
6565
for (size_t i = 0; i < strlen(tags); i++) {
6666
char c = tags[i];
67-
if (c == '^' || c == '=' || c == '[' || c == ']' || c == '{' ||
68-
c == '}' || c == ';' || c == ':' || c == '\'' || c == '"' ||
69-
c == '<' || c == '>' || c == '?' || c == '\\' || c == '|' ||
70-
c == '~' || c == '`' || c == '\t' || c == '\n') {
67+
if (c == '[' || c == ']' || c == '{' || c == '}' || c == ';' ||
68+
c == ':' || c == '\'' || c == '"' || c == '<' || c == '>' ||
69+
c == '?' || c == '\\' || c == '|' || c == '`' || c == '\t' ||
70+
c == '\n') {
7171
return false;
7272
}
7373
}
@@ -746,4 +746,4 @@ void handle_put_node_tag(nng_aio *aio)
746746
}
747747
}
748748
})
749-
}
749+
}

0 commit comments

Comments
 (0)