]> Sergey Matveev's repositories - public-inbox.git/commit
altid: warn about non-word prefixes
authorEric Wong <e@yhbt.net>
Sat, 21 Mar 2020 02:03:53 +0000 (02:03 +0000)
committerEric Wong <e@yhbt.net>
Wed, 25 Mar 2020 01:48:35 +0000 (01:48 +0000)
commit7909c5f7439777e3b3643f14224b27f0a8f8fb07
tree12e9187b2069d63582c3c72546f7f71756d2f79a
parent089380f8ebecbe868c5599773b3c23d40b3db129
altid: warn about non-word prefixes

We only support searching on prefixes matching /\A\w+\z/ because
Xapian requires ':' to delimit the prefix and splits on spaces
without quotes.

I've also verified Xapian supports multibyte UTF-8 characters,
underscores, and bare numbers as search prefixes, so there's
no need to restrict it beyond what Perl's UTF-8 aware \w
character class offers.
lib/PublicInbox/AltId.pm
lib/PublicInbox/Search.pm