Skip to content

Commit

Permalink
fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed May 14, 2015
1 parent 9c3f5c2 commit aa68318
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,9 @@ _.glob = function(pattern, str, options) {
regex = getFileTypeReg(pattern);
} else {

// 兼容老用法
pattern = pattern.replace(/\*\*\./g, '*.');

// 由于minimatch提供的glob支持中()语法不符合fis glob的需求,因此只针对()单独处理
var hasBracket = ~pattern.indexOf('(');
var m = /^(\(*?)(?!\/|\(|\*\*)(.*)$/.exec(pattern);
Expand Down

0 comments on commit aa68318

Please sign in to comment.