This commit is contained in:
14
node_modules/trim/index.js
generated
vendored
Normal file
14
node_modules/trim/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
exports = module.exports = trim;
|
||||
|
||||
function trim(str){
|
||||
return str.replace(/^\s*|\s*$/g, '');
|
||||
}
|
||||
|
||||
exports.left = function(str){
|
||||
return str.replace(/^\s*/, '');
|
||||
};
|
||||
|
||||
exports.right = function(str){
|
||||
return str.replace(/\s*$/, '');
|
||||
};
|
||||
Reference in New Issue
Block a user