mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
Monotone-Parent: b9ab04e24ca5e937284497ebb1577596987b10a3
Monotone-Revision: d5d527cabbc7f280c54fbbfb2ede75e79fdb8d0c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-25T14:26:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2,6 +2,15 @@ String.prototype.trim = function() {
|
||||
return this.replace(/(^\s+|\s+$)/g, '');
|
||||
}
|
||||
|
||||
String.prototype.repeat = function(count) {
|
||||
var newString = "";
|
||||
for (var i = 0; i < count; i++) {
|
||||
newString += this;
|
||||
}
|
||||
|
||||
return newString;
|
||||
}
|
||||
|
||||
String.prototype.capitalize = function() {
|
||||
return this.replace(/\w+/g,
|
||||
function(a) {
|
||||
|
||||
Reference in New Issue
Block a user