auth-api/tests/node_modules/trim/index.js

15 lines
234 B
JavaScript
Raw Normal View History

2021-06-23 22:30:45 +02:00
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*$/, '');
};