Merge pull request #2064 from hxy7yx/v2.7-3

[v2.7]read(filter): name(name || desc)
This commit is contained in:
fengzeroz
2024-06-04 15:55:40 +08:00
committed by GitHub
+2 -1
View File
@@ -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)