projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Roo/htmleditor/TidySerializer.js
[roojs1]
/
String.js
diff --git
a/String.js
b/String.js
index
f5a603e
..
5096998
100644
(file)
--- a/
String.js
+++ b/
String.js
@@
-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);
+};
+