Skip to content

capitalize with accent #25

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Try to output : "août"|capitalize

What is the expected output? What do you see instead?
Expected : Août
Instead of : AoÛT

What version of the product are you using? On what operating system?
Jsmart 2.9 min
Firefox 20.0
Mac OS X 10.8.3

Please provide any additional information below.

A Quick fix is to use another plugin:
jSmart.prototype.registerPlugin("modifier", "capitalize2", function(a, b) {
 var tab = a.split(" ");
 for(var i = 0 ; i < tab.length; i++){
  tab[i]=tab[i].substr(0,1).toUpperCase() + tab[i].slice(1);
 }
 return tab.join(" ");
});

Original issue reported on code.google.com by constant...@gmail.com on 22 May 2013 at 1:11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions