Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
We shouldn't be using deprecated methods in the settings ourselves
  • Loading branch information
lizmat committed Sep 24, 2013
1 parent 367963a commit 36343bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Str.pm
Expand Up @@ -782,7 +782,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
}

method capitalize(Str:D:) is DEPRECATED {
self.subst(:g, rx/\w+/, -> $_ { .Str.lc.ucfirst });
self.subst(:g, rx/\w+/, -> $_ { .Str.tclc });
}
method wordcase(Str:D: :&filter = &tclc, Mu :$where = True) {
self.subst(:g, / [<:L> \w* ] +% <['\-]> /, -> $m {
Expand Down

0 comments on commit 36343bc

Please sign in to comment.