Skip to content

Commit

Permalink
fix: Add support for multi-level filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
AverageMarcus committed Oct 8, 2017
1 parent ff935ca commit 29a9a44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/config/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 29a9a44

Please sign in to comment.