3 ms·
That's actually wrong unless that i/I code is strictly internal data which is never shown to a human. Where was the snippet from?
by acdha 14y ago
That's actually wrong unless that i/I code is strictly internal data which is never shown to a human. Where was the snippet from?
- gizzlon 14y agoWhy is that? https://github.com/angular/angular.js/blob/master/src/Angular.js#L41 https://github.com/angular/angular.js/blob/master/src/Angula...
- acdha 14y agoIn Turkish, "i" uppercases to "İ" (note the dot) - there's a separate undotted lowercase "ı" which becomes "I": http://www.i18nguy.com/unicode/turkish-i18n.html http://www.i18nguy.com/unicode/turkish-i18n.html So basically if your goal is for "i".upperCase() to produce something which goes to another program (e.g. an API call), the Angular code is correct. If it's going to be displayed to humans, it's wrong. The documentation at http://docs.angularjs.org/api/angular.uppercase http://docs.angularjs.org/api/angular.uppercase should probably specify that this cannot be used for user content.