mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
Merge pull request #2064 from hxy7yx/v2.7-3
[v2.7]read(filter): name(name || desc)
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