[Pkg-javascript-commits] [node-shell-quote] 43/137: using the meta chars directly from the docs

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:38 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 b009ef6d04eb1cc57d66cf3670d24e03fa0fc6bd
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 03:00:32 2013 -0700

    using the meta chars directly from the docs
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 038400f..8f5987b 100644
--- a/index.js
+++ b/index.js
@@ -18,7 +18,7 @@ var META = '[|&;()<> \\t]';
 exports.parse = function parse (s, env) {
     var chunker = new RegExp(
         '([\'"])((\\\\\\1|[^\\1])*?)\\1'
-        + '|(\\\\[|&;()<> \\t]|[^\\s&|])+'
+        + '|(\\\\' + META + '|[^\\s&|])+'
         + '|([&|])',
         'g'
     );

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