there. LESS builds to dist/ now.nohash
parent
41d701de1d
commit
3a474c9bae
@ -0,0 +1,5 @@
|
||||
if (typeof(String.prototype.trim) !== "function") {
|
||||
String.prototype.trim = function (str) {
|
||||
return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
|
||||
};
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
if (typeof(String.prototype.trim) === "undefined") {
|
||||
String.prototype.trim = function (str) {
|
||||
var str = this.replace(/^\s+/, '');
|
||||
for (var i = str.length - 1; i >= 0; i--) {
|
||||
if (/\S/.test(str.charAt(i))) {
|
||||
str = str.substring(0, i + 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return str;
|
||||
};
|
||||
}
|
Loading…
Reference in new issue