From 29a9a449d5b2011bb704f1a80d786f57455f036c Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 8 Oct 2017 16:03:07 +0100 Subject: [PATCH] fix: Add support for multi-level filenames --- lib/config/exec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/config/exec.js b/lib/config/exec.js index 1a38cd89..b7ae68d1 100644 --- a/lib/config/exec.js +++ b/lib/config/exec.js @@ -155,7 +155,9 @@ function exec(nodemonOptions, execMap) { // BIG NOTE: user can't do this: nodemon -e *.js // because the terminal will automatically expand the glob against // the file system :( - extension = (extension.match(/[^,.\s]+/g) || []).join(','); + extension = (extension.match(/[^,*\s]+/g) || []) + .map(ext => ext.replace(/^\./, '')) + .join(','); options.ext = extension;