Skip to content

Commit b0da7f8

Browse files
committed
修复 win 正则匹配问题
1 parent 971882d commit b0da7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tasks/TaskBuildDev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ module.exports = function (gulp, config) {
144144
}
145145

146146
var watchHandler = function (type, file) {
147-
var target = file.match(/^src\/(.*?)\//)[1];
147+
var target = file.match(/^src[\/|\\](.*?)[\/|\\]/)[1];
148148

149149
switch (target) {
150150
case 'img':

0 commit comments

Comments
 (0)