Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
do not limit Any.subst to regexes, for example strings are fine too
  • Loading branch information
moritz committed Jan 4, 2010
1 parent fe1e749 commit e06af48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Any-str.pm
Expand Up @@ -15,7 +15,7 @@ augment class Any {
}
}

multi method subst(Regex $matcher, Str $replacement, :$g) {
multi method subst($matcher, Str $replacement, :$g) {
self.split($matcher, :limit($g ?? * !! 2)).join($replacement);
}

Expand Down

0 comments on commit e06af48

Please sign in to comment.