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:
parent
024c0c79dd
commit
c9029a0001
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue