Skip to content
Browse files

Fixed text-transform: capitalize with accented characters.

  • Loading branch information...
1 parent eefefdc commit b64768265b51efc0d4de220482173f4c33491c15 @sorccu committed Jul 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/cufon.js
View
2 js/cufon.js
@@ -210,7 +210,7 @@ var Cufon = (function() {
return s.toLowerCase();
},
capitalize: function(s) {
- return s.replace(/\b./g, function($0) {
+ return s.replace(/(?:^|\s)./g, function($0) {
return $0.toUpperCase();
});
}

0 comments on commit b647682

Please sign in to comment.
Something went wrong with that request. Please try again.