From 50c8c31ed7f6ebf18de4339ee0e64b1558b07e83 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 28 Feb 2022 12:13:17 -0800 Subject: [PATCH] string.trim() supported everywhere now --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }; /**