diff --git a/lib/utils.js b/lib/utils.js index 1f994c1..b34436c 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -258,7 +258,7 @@ exports.clean = function(str) { */ exports.trim = function(str){ - return str.replace(/^\s+|\s+$/g, ''); + return str.trim() }; /**