From 24022692507241be1ceddcfb605d66a3acf3e644 Mon Sep 17 00:00:00 2001 From: andrei0807 <32348752+andrei0807@users.noreply.github.com> Date: Mon, 24 Jun 2019 09:23:56 +0800 Subject: [PATCH] Fix issue for download files in subfolder After delete this code line, I can download file from subfolder in linux. --- 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,