angular-filter
angular-filter copied to clipboard
ucfirst doesn't work with capitalized string
Hi, thank you for this awesome plugin!
I just noticed ucfirst filter doesn't work with fully capitalized string.
Expected behavior: hello leo => Hello Leo HELLO LEO => Hello Leo
Current behavior: hello leo => Hello Leo HELLO LEO => HELLO LEO
I think the ucfirst only capitalize first character in each string and return the rest as it is.
https://github.com/a8m/angular-filter/blob/0bc1607f2468bf003a8419718f42f310b1445bd9/dist/angular-filter.js#L2081
<p> {{ 'foo bar baz' | ucfirst }}</p>
<!--
result:
Foo Bar Baz
-->