[Pkg-javascript-commits] [node-shell-quote] 72/137: pass objects through
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:19:40 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 f9c0514abbdf8ba16fafb68736863d14b39015ef
Author: James Halliday <mail at substack.net>
Date: Mon May 13 06:47:26 2013 -0700
pass objects through
---
index.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/index.js b/index.js
index 6469014..2209eea 100644
--- a/index.js
+++ b/index.js
@@ -29,6 +29,7 @@ exports.parse = function (s, env) {
var mapped = parse(s, env);
if (typeof env !== 'function') return mapped;
return mapped.reduce(function (acc, s) {
+ if (typeof s === 'object') return acc.concat(s);
var xs = s.split(RegExp('(' + TOKEN + '.*?' + TOKEN + ')', 'g'));
if (xs.length === 1) return acc.concat(xs[0]);
return acc.concat(xs.filter(Boolean).map(function (x) {
--
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