Skip to content

Commit 6bf9dc9

Browse files
committed
Trim trailing whitespace in unicodable
Not sure if it should be doing this, but that makes tests pass right now.
1 parent 6e938dc commit 6bf9dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/Unicodable.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ method process($msg, $query is copy) {
121121
@all.push: $_;
122122
$msg.reply: self.get-description: $_ if @all [<] MESSAGE-LIMIT
123123
}
124-
} elsif $query ~~ /^ <+[a..zA..Z] +[0..9] +[\-\ ]>+ $ && .*? \S / {
124+
} elsif $query.trim-trailing ~~ /^ <+[a..zA..Z] +[0..9] +[\-\ ]>+ $ && .*? \S / {
125125
my @words;
126126
my @props;
127127
for $query.words {

0 commit comments

Comments
 (0)