From 2adb37366bdfae198ce61e4658e513d3e0bc98fa Mon Sep 17 00:00:00 2001 From: James Halliday Date: Mon, 13 May 2013 02:52:35 -0700 Subject: [PATCH] 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 = {};