From 6c2a120dc50ab275b1ba979409d300a76e5c6ec4 Mon Sep 17 00:00:00 2001 From: andrei0807 <32348752+andrei0807@users.noreply.github.com> Date: Thu, 11 Jul 2019 10:02:00 +0800 Subject: [PATCH] sub folder's file download --- lib/providers/filesystem/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/providers/filesystem/index.js b/lib/providers/filesystem/index.js index 6f11bfa..3d702dd 100644 --- a/lib/providers/filesystem/index.js +++ b/lib/providers/filesystem/index.js @@ -56,7 +56,7 @@ function validateName(name, cb) { return false; } var match = namePattern.exec(name); - if (match && match.index === 0 && match[0].length === name.length) { + if (match && match.index === 0) { return true; } else { cb && process.nextTick(cb.bind(null,