Skip to content

Commit 7e22960

Browse files
authored
Improve wildcard extension extraction (#1712)
1 parent cd4cecd commit 7e22960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/file-watcher.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const chokidarVersion4 = require(chokidarPackagePath).version.startsWith('4.');
99

1010
const extractWildcardExtension = (path) => {
1111
// Match patterns like *.php, **/*.blade.php
12-
const match = path.match(/\/\*\.((\\w|\\.)+)$/);
12+
const match = path.match(/\/\*\.((\w|\.)+)$/);
1313

1414
return match ? match[1] : null;
1515
};

0 commit comments

Comments
 (0)