[Pkg-javascript-commits] [node-shell-quote] 40/137: op test completely passing

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:37 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 20a01475741d9fba801bbd2b0c1a5f215dc9cec4
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 02:51:49 2013 -0700

    op test completely passing
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 49f158f..92464dd 100644
--- a/index.js
+++ b/index.js
@@ -13,7 +13,7 @@ exports.quote = function (xs) {
 };
 
 exports.parse = function parse (s, env) {
-    var chunker = /(['"])((\\\1|[^\1])*?)\1|(\\ |\S)+|([&|])/g;
+    var chunker = /(['"])((\\\1|[^\1])*?)\1|(\\[ &|]|[^\s&|])+|([&|])/g;
     var match = s.match(chunker);
     if (!match) return [];
     if (!env) env = {};

-- 
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