Skip to content

Commit

Permalink
string.trim() supported everywhere now
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 28, 2022
1 parent 6e65fa1 commit 50c8c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -258,7 +258,7 @@ exports.clean = function(str) {
*/

exports.trim = function(str){
return str.replace(/^\s+|\s+$/g, '');
return str.trim()
};

/**
Expand Down

0 comments on commit 50c8c31

Please sign in to comment.