about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-04 02:04:31 +0000
committerEric Wong <e@80x24.org>2019-06-04 10:06:18 +0000
commita533d298a88688587311efc8d59c924a502667f9 (patch)
tree42ffc0a37bb2a6af64979defe09bc9231aa71682 /lib/PublicInbox/View.pm
parentaf3d2366e9c2096bc927f7dce66cd024bc866b51 (diff)
downloadpublic-inbox-a533d298a88688587311efc8d59c924a502667f9.tar.gz
Passing digits to `timegm' which it does not understand would
be a waste of time.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 83ae99bc..1b52bf86 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -1160,8 +1160,8 @@ sub paginate_recent ($$) {
         # Xapian uses '..' but '-' is perhaps friendier to URL linkifiers
         # if only $after exists "YYYYMMDD.." because "." could be skipped
         # if interpreted as an end-of-sentence
-        $t =~ s/\A(\d{8,14})-// and $after = str2ts($1);
-        $t =~ /\A(\d{8,14})\z/ and $before = str2ts($1);
+        $t =~ s/\A([0-9]{8,14})-// and $after = str2ts($1);
+        $t =~ /\A([0-9]{8,14})\z/ and $before = str2ts($1);
 
         my $ibx = $ctx->{-inbox};
         my $msgs = $ibx->recent($opts, $after, $before);