This project is archived and is in readonly mode.

#464 ✓invalid

Capitalize() don't work with words with accents

Reported by YanK | November 7th, 2008 @ 06:37 PM | in 2.0 (closed)

Sorry for my english.

Is it possible to change capitalize function by another function like :

capitalize: function(){ return this.replace(/(^|[^çéäâàáåãéèëêòóôõöøìíîïùúûüýñçþÿæœðø])\b[a-z]/gi, function(match1){

return match1.replace(/[a-z]$/, function(match){
  return match.toUpperCase();

}); },

Comments and changes to this ticket

  • Valerio

    Valerio January 21st, 2009 @ 09:14 PM

    • State changed from “new” to “invalid”

    Functions like capitalize, or hyphenate, are designed for working with code. In no scenario you should use these function to process content.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket