about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox')
-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 520aa31d..c5a1bd69 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -357,7 +357,7 @@ sub query_approxidate {
         my $DQ = qq<"\x{201c}\x{201d}>; # Xapian can use curly quotes
         $_[2] =~ tr/\x00/ /; # Xapian doesn't do NUL, we use it as a placeholder
         my ($terms, $phrase, $to_parse);
-        $_[2] =~ s{([^$DQ]*)([${DQ}][^\"]*[$DQ])?}{
+        $_[2] =~ s{([^$DQ]*)([$DQ][^$DQ]*[$DQ])?}{
                 ($terms, $phrase) = ($1, $2);
                 $terms =~ s!\b(d|rt|dt):(\S+)!
                         date_parse_prepare($to_parse //= [], $1, $2)!sge;