From 9dac0a21e1466c52e60b049c0b84bea2680aa3b8 Mon Sep 17 00:00:00 2001 From: arf20 Date: Mon, 8 Dec 2025 20:35:56 +0100 Subject: fixed types of queries --- index.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'index.c') diff --git a/index.c b/index.c index 3840549..6d00ee5 100644 --- a/index.c +++ b/index.c @@ -301,7 +301,7 @@ index_lookup_substr_caseinsensitive(map_t *index, const char *query, if (strcasestr(node->data->name, query)) results_insert(results, node->data); if (node->child) - index_lookup_substr(node->child, query, results); + index_lookup_substr_caseinsensitive(node->child, query, results); } } } @@ -317,7 +317,7 @@ index_lookup_exact(map_t *index, const char *query, results_t *results) if (strcmp(node->data->name, query) == 0) results_insert(results, node->data); if (node->child) - index_lookup_substr(node->child, query, results); + index_lookup_exact(node->child, query, results); } } } @@ -347,7 +347,6 @@ index_lookup(map_t *index, lookup_type_t type, const char *query) case LOOKUP_REGEX: index_lookup_regex(index, query, results); break; - } return results; -- cgit v1.2.3