]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Search.pm
altid: warn about non-word prefixes
[public-inbox.git] / lib / PublicInbox / Search.pm
index fabf5301f163187035c2cdd1a51895e98ba8116a..86a6ad674b3e1fbfdb70d3a04d8dac40d4fae881 100644 (file)
@@ -316,6 +316,8 @@ sub qp {
                my $user_pfx = $self->{-user_pfx} = [];
                for (@$altid) {
                        # $_ = 'serial:gmane:/path/to/gmane.msgmap.sqlite3'
+                       # note: Xapian supports multibyte UTF-8, /^[0-9]+$/,
+                       # and '_' with prefixes matching \w+
                        /\Aserial:(\w+):/ or next;
                        my $pfx = $1;
                        push @$user_pfx, "$pfx:", <<EOF;