[Pkg-javascript-commits] [node-shell-quote] 104/137: falseys ok

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-shell-quote.

commit 22dbd9492c372038d439d6ec08c6288ca5fa3c10
Author: James Halliday <mail at substack.net>
Date:   Sun Jul 20 14:26:33 2014 -0700

    falseys ok
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index f9803c5..6475645 100644
--- a/index.js
+++ b/index.js
@@ -15,7 +15,7 @@ exports.quote = function (xs) {
             return '"' + s.replace(/(["\\$`(){}!#&*|])/g, '\\$1') + '"';
         }
         else {
-            return s.toString().replace(/([\\$`(){}!#&*|])/g, '\\$1');
+            return String(s).replace(/([\\$`(){}!#&*|])/g, '\\$1');
         }
     }).join(' ');
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git



More information about the Pkg-javascript-commits mailing list