Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Trim trailing whitespace in unicodable
Not sure if it should be doing this, but that makes tests pass right
now.
  • Loading branch information
AlexDaniel committed Feb 28, 2018
1 parent 6e938dc commit 6bf9dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/Unicodable.p6
Expand Up @@ -121,7 +121,7 @@ method process($msg, $query is copy) {
@all.push: $_;
$msg.reply: self.get-description: $_ if @all [<] MESSAGE-LIMIT
}
} elsif $query ~~ /^ <+[a..zA..Z] +[0..9] +[\-\ ]>+ $ && .*? \S / {
} elsif $query.trim-trailing ~~ /^ <+[a..zA..Z] +[0..9] +[\-\ ]>+ $ && .*? \S / {
my @words;
my @props;
for $query.words {
Expand Down

0 comments on commit 6bf9dc9

Please sign in to comment.