]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Search.pm
search: disallow spaces in argv approxidate queries
[public-inbox.git] / lib / PublicInbox / Search.pm
index 8e4cce33f5f6eb267d480da59e3f6b59a9d01fe5..520aa31d3a05371fd9697692e1bd1171a45c0a2a 100644 (file)
@@ -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/) {