[Pkg-javascript-commits] [node-jsonstream] 76/214: support string wildcards

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-jsonstream.

commit f23fbeb109b051d0cdd0a7da26e9a94a4452819c
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Sat Mar 16 15:46:09 2013 +1300

    support string wildcards
---
 index.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/index.js b/index.js
index 39d3acc..816ea2d 100644
--- a/index.js
+++ b/index.js
@@ -32,6 +32,11 @@ exports.parse = function (path) {
     stream.queue(null)
   })
 
+  if('string' === typeof path)
+    path = path.split('.').map(function (e) {
+      return e === '*' ? true : e
+    })
+
 
   var count = 0
   if(!path || !path.length)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonstream.git



More information about the Pkg-javascript-commits mailing list