about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-10 18:57:59 -0100
committerEric Wong <e@80x24.org>2021-02-11 19:15:14 +0000
commitbbeccd3d252c926e649b946a8a46dd14e6e92182 (patch)
tree5ea88ff3c5d9153c0041ab31e5f28a1f8d5e54d1 /lib
parentb503d87a23c90fc0f705a79bce34944e7e20b28b (diff)
downloadpublic-inbox-bbeccd3d252c926e649b946a8a46dd14e6e92182.tar.gz
This is for consistency with --stdin and WWW front ends
which can't distinguish between phrase searches and
prefix ranges used for d:/dt:/rt:.

In any case, I expect users on the lei command-line are more
likely to use `5.days.ago' instead of `"5 days ago"'
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 8e4cce33..520aa31d 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -337,7 +337,7 @@ sub query_argv_to_string {
         my (undef, $git, $argv) = @_;
         my $to_parse;
         my $tmp = join(' ', map {;
-                if (s!\b(d|rt|dt):([[:print:]]+)\z!date_parse_prepare(
+                if (s!\b(d|rt|dt):(\S+)\z!date_parse_prepare(
                                                 $to_parse //= [], $1, $2)!sge) {
                         $_;
                 } elsif (/\s/) {