Skip to content

Commit 058810b

Browse files
committed
Treat dashes and digits as valid chars in uninames
my %c; for 0..0x1FFFF { %c{$_} = 1 for .uniname.comb }; %c.keys.sort.join.say OUTPUT:« ()-0123456789<>ABCDEFGHIJKLMNOPQRSTUVWXYZabdeghilnoprstuvwxy» I am not including <> and () in the list. Here is the list of stuff that has () or <> in a uniname: <CJK Ideograph Extension A> <CJK Ideograph> <Hangul Syllable> <Low Surrogate> <Non Private Use High Surrogate> <Private Use High Surrogate> <Private Use> <Tangut Ideograph> <illegal> <reserved> CARRIAGE RETURN (CR) FORM FEED (FF) LINE FEED (LF) NEXT LINE (NEL)
1 parent 1ba7473 commit 058810b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Unicodable.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ method process($message, $query is copy) {
7474

7575
my @all;
7676

77-
if $query ~~ /^ <+[a..z] +[A..Z] +space>+ $/ {
77+
if $query ~~ /^ <+[a..zA..Z] +[0..9] +[\-\ ]>+ $/ {
7878
my @words;
7979
my @props;
8080
for $query.words {

0 commit comments

Comments
 (0)