[Pkg-javascript-commits] [node-shell-quote] 41/137: the spec says tabs are also allowed
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 2adb37366bdfae198ce61e4658e513d3e0bc98fa
Author: James Halliday <mail at substack.net>
Date: Mon May 13 02:52:35 2013 -0700
the spec says tabs are also allowed
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 92464dd..08afc20 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|(\\[ \t&|]|[^\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