Minor fix.
h3rald h3rald@h3rald.com
Sat, 15 Sep 2018 22:14:24 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
lib/core.nim
→
lib/core.nim
@@ -154,7 +154,7 @@ var query = SQL_COUNT_TAGS
if q.len > 0: query = q.sql if like.len > 0: - if (like[like.len-1] == '*'): + if (like[like.len-1] == '%' or like[like.len-1] == '*'): let str = like.substr(0, like.len-2) return store.db.getRow(query, str, str & "{")[0].parseInt else: