mirror of
https://github.com/emqx/neuron.git
synced 2026-10-19 14:23:05 +08:00
get tags: query description
This commit is contained in:
+2
-1
@@ -220,7 +220,8 @@ static inline bool is_readable(const neu_datatag_t *tag, void *data)
|
||||
static inline bool name_contains(const neu_datatag_t *tag, void *data)
|
||||
{
|
||||
const char *name = data;
|
||||
return strstr(tag->name, name) != NULL;
|
||||
return strstr(tag->name, name) != NULL ||
|
||||
(tag->description != NULL && strstr(tag->description, name) != NULL);
|
||||
}
|
||||
|
||||
static inline bool description_contains(const neu_datatag_t *tag, void *data)
|
||||
|
||||
Reference in New Issue
Block a user