Skip to content

Commit 1addfea

Browse files
committed
fix: update regex to include unicode extensions -- no tests yet cc: @remy
1 parent e619021 commit 1addfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config/exec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function exec(nodemonOptions, execMap) {
155155
// BIG NOTE: user can't do this: nodemon -e *.js
156156
// because the terminal will automatically expand the glob against
157157
// the file system :(
158-
extension = extension.match(/\w+/g).join(',');
158+
extension = extension.match(/[^,.\s]+/g).join(',');
159159

160160
options.ext = extension;
161161

0 commit comments

Comments
 (0)