andrewplummer/Sugar — pull request #114 by GearHead90 (2012-03-06 11:54:58+00:00)
Title: String#capitalize an Unicode chars

I have found, that Sugar's capitalize does not work with Unicode chars:

"фыва йцук".capitalize() # should be Фыва Йцук, but returns the same string.

At the same time, toUpperCase works correctly.

I understand, that the root of issue is that ECMAScript standard in all browsers provides non-Unicode RegExps. So I made a shim-solution, that works well on tests and in real world.