Merge "fix backup unit tests"
[lhc/web/wiklou.git] / resources / jquery / jquery.mwExtension.js
index 7b37bb7..023ea7f 100644 (file)
@@ -12,7 +12,7 @@
                                        '' : str.toString().replace( /\s+$/, '' );
                },
                ucFirst: function( str ) {
-                       return str.substr( 0, 1 ).toUpperCase() + str.substr( 1 );
+                       return str.charAt( 0 ).toUpperCase() + str.substr( 1 );
                },
                escapeRE: function( str ) {
                        return str.replace ( /([\\{}()|.?*+\-^$\[\]])/g, "\\$1" );