Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

capitalize modifier with accent #8

Closed
umakantp opened this issue Dec 25, 2014 · 0 comments
Closed

capitalize modifier with accent #8

umakantp opened this issue Dec 25, 2014 · 0 comments
Labels

Comments

@umakantp
Copy link
Owner

If capitalize is used on a string which has asscented character, it capitalizes the accented characters.

e.g.
"août"|capitalize

Expected : Août
Instead of : AoÛT

Bug reported at: https://code.google.com/p/jsmart/issues/detail?id=25

@umakantp umakantp added the bug label Dec 25, 2014
umakantp pushed a commit that referenced this issue Dec 25, 2014
…apitalize modifier is used.

\W is Matches any character that is not a word character from the basic Latin alphabet. Equivalent to [^A-Za-z0-9_].

Support for internationalization in JavaScript's RegExp is virtually nonexistent.

Convert \W to its equivalent with including accented chars

Reference:
http://compgroups.net/comp.lang.javascript/regex-with-accents/190205
http://stackoverflow.com/questions/5436824/matching-accented-characters-with-javascript-regexes
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/RegExp#character-sets

Issue raised: #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant