Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Cool-str] fixed .trans case where @changes is []
This un-breaks one of the tests in trans.rakudo.
  • Loading branch information
Carl Masak committed Nov 9, 2010
1 parent 2c66f9a commit 4d33bae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Cool-str.pm
Expand Up @@ -164,6 +164,8 @@ augment class Cool {
}

multi method trans(*@changes) {
return self unless @changes;

my sub expand($s) {
return $s.list if $s ~~ Iterable|Positional;
gather for $s.comb(/ (\w) '..' (\w) | . /, :match) {
Expand Down

0 comments on commit 4d33bae

Please sign in to comment.