Permalink
Browse files

[Cool-str] fixed .trans case where @changes is []

This un-breaks one of the tests in trans.rakudo.
  • Loading branch information...
1 parent 2c66f9a commit 4d33bae5919d08bcf2347b0e5a1e3eb49c67e426 @masak masak committed Nov 9, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/Cool-str.pm
View
2 src/core/Cool-str.pm
@@ -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) {

0 comments on commit 4d33bae

Please sign in to comment.