From ecc5b49be9a2ca941f64fe2dc048bfea95ecd8c3 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 16 Apr 2018 00:29:24 -0500 Subject: [PATCH] Mulitple file pattern match Added the ability to match on multiple file patterns seperated by a pipe. e.g. "*.js|*.css|*.html" would return files that match any of the patterns. --- lib/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 77c96ee..b6472df 100644 --- a/lib/index.js +++ b/lib/index.js @@ -16,10 +16,13 @@ export default function finf(path, pattern) { let files = []; if(pattern != undefined) { - pattern = fp(pattern); - for(let i=0;i