Details
-
Enhancement
-
Resolution: Fixed
-
P3
-
8
-
None
-
b106
-
generic
-
generic
Description
Some node modules are making use of these functions.
It could also be added by nodejar initialization scripts:
if (!String.prototype.trimLeft) {
String.prototype.trimLeft = function(){
return this.replace(/^\s+/, '');
}
}
if (!String.prototype.trimRight) {
String.prototype.trimRight = function(){
return this.replace(/\s+$/, '');
}
}
It could also be added by nodejar initialization scripts:
if (!String.prototype.trimLeft) {
String.prototype.trimLeft = function(){
return this.replace(/^\s+/, '');
}
}
if (!String.prototype.trimRight) {
String.prototype.trimRight = function(){
return this.replace(/\s+$/, '');
}
}