]> Sergey Matveev's repositories - public-inbox.git/commit
search: query_approxidate: cleanup regexp, more tests
authorEric Wong <e@80x24.org>
Thu, 11 Feb 2021 05:57:28 +0000 (12:57 +0700)
committerEric Wong <e@80x24.org>
Sat, 13 Feb 2021 02:58:50 +0000 (22:58 -0400)
commitc471b946ef629cf3db9043081a1aeaa189436f6b
tree88d9a38b81b6d32ddfba81158b004cc481607f05
parent376778b910cdf787d6e08cfd11acab26118899f4
search: query_approxidate: cleanup regexp, more tests

The cleanup doesn't seem to matter, I initially thought I needed
to handle "" (two double quotes) explicitly because that's what
Xapian does to escape a double quote inside a double-quoted
phrase.  It turns out we only need to be able to pass phrases
through to Xapian unmodified, and the existing group of
["\x{201c}\x{201d}] is sufficient for our purposes.
lib/PublicInbox/Search.pm
t/search.t