Skip to content

Commit

Permalink
op test completely passing
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 13, 2013
1 parent e6f9199 commit 20a0147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 20a0147

Please sign in to comment.