projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix filters parsing
[pazpar2-moved-to-github.git]
/
src
/
logic.c
diff --git
a/src/logic.c
b/src/logic.c
index
f9cd08f
..
26fe5e7
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-446,7
+446,7
@@
static struct database_criterion *parse_filter(NMEM m, const char *buf)
char *eq;
if ((eq = strchr(values[i], '=')))
new->type = PAZPAR2_STRING_MATCH;
- if ((eq = strchr(values[i], '~')))
+ else if ((eq = strchr(values[i], '~')))
new->type = PAZPAR2_SUBSTRING_MATCH;
if (!eq)
{