Mercurial > hg > egg-tcls
diff quotedb.tcl @ 109:74cb254dbf09
urllog and quotedb: Handle "+"-prefix in searches as it is documented.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 Sep 2011 21:18:57 +0300 |
parents | a8278d55c6db |
children | 4aa1e1d545ed |
line wrap: on
line diff
--- a/quotedb.tcl Wed Sep 14 19:34:23 2011 +0300 +++ b/quotedb.tcl Mon Sep 19 21:18:57 2011 +0300 @@ -419,6 +419,8 @@ lappend fpatlist "user='[qdb_escape $fpattern]'" } elseif {$fprefix == "@"} { # foo + } elseif {$fprefix == "+"} { + lappend fpatlist "utext LIKE '%[qdb_escape $fpattern]%'" } else { lappend fpatlist "utext LIKE '%[qdb_escape $ftoken]%'" }