Comment Comment by delfaras Here's the complete source for anyone curious``` 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$/, ''); };``` parent delfaras 7 years ago
``` 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$/, ''); };
```