]> Sergey Matveev's repositories - public-inbox.git/commit - lib/PublicInbox/Search.pm
search: fix argv handling of quoted phrases
authorEric Wong <e@80x24.org>
Wed, 10 Feb 2021 09:59:26 +0000 (08:59 -0100)
committerEric Wong <e@80x24.org>
Wed, 10 Feb 2021 19:21:47 +0000 (19:21 +0000)
commitefae1c2f67220c18f57bd1ebdf7115abd4d6c6e0
tree0123b9c732525e40e199d2fdfb558d9ef2fcab33
parent9eb840de546dfe9b6c6aa1588f5bb8c0153c7d71
search: fix argv handling of quoted phrases

This fixes both an old bug in "lei q" argv handling and one
recent regression introduced with the change to use approxidate.

Field prefixes are also handled correctly inside parenthesized
statements when the field follows "(" without a separation
character.

Fixes: fbb7ccabbf54a405 ("lei q: use git approxidate with d:, dt: and rt: ranges")
lib/PublicInbox/Search.pm
t/search.t