Changed docs/src/Roo_htmleditor_FilterWord.js.html
[roojs1] / String.js
index 0e76ae7..5096998 100644 (file)
--- a/String.js
+++ b/String.js
@@ -66,7 +66,7 @@ var s = String.format('<div class="{0}">{1}</div>', cls, text);
         return format.replace(/\{(\d+)\}/g, function(m, i){
             return Roo.util.Format.htmlEncode(args[i]);
         });
-    }.
+    }
   
     
 });
@@ -114,3 +114,13 @@ String.prototype.unicodeClean = function () {
     );
 };
   
+
+/**
+  * Make the first letter of a string uppercase
+  *
+  * @return {String} The new string.
+  */
+String.prototype.toUpperCaseFirst = function () {
+    return this.charAt(0).toUpperCase() + this.slice(1);
+};  
+