Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

This un-breaks one of the tests in trans.rakudo.
  • Loading branch information...
commit 4d33bae5919d08bcf2347b0e5a1e3eb49c67e426 1 parent 2c66f9a
@masak masak authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.