diff options
author | Eric Wong <e@80x24.org> | 2019-06-04 08:40:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-04 10:06:18 +0000 |
commit | d3906fed88f403552d1629e9ecc9974ab85abaae (patch) | |
tree | 44eece4dff4ac1e7e91566400c32ddb024682ca8 /lib/PublicInbox/Search.pm | |
parent | b04bdc8cd749dd3dfcc9351b2b47bfdf190b4a3a (diff) | |
download | public-inbox-d3906fed88f403552d1629e9ecc9974ab85abaae.tar.gz |
In case some BOFH decides to randomly create directories using non-ASCII digits all over the place.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index c054a874..9903f427 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -144,7 +144,7 @@ sub _xdb ($) { my $qpf = \($self->{qp_flags} ||= $QP_FLAGS); if ($self->{version} >= 2) { foreach my $part (<$dir/*>) { - -d $part && $part =~ m!/\d+\z! or next; + -d $part && $part =~ m!/[0-9]+\z! or next; my $sub = Search::Xapian::Database->new($part); if ($xdb) { $xdb->add_database($sub); |