code: function isIn(asset, rules) {
      for (let i = 0, len = rules.length; i < len; i++) {
          let rule = rules[i];
          if (typeof rule === 'function' && rule.call(this, asset)) {
              return true;
          }
          else if (typeof rule === 'object' && rule instanceof RegExp && rule.test(asset)) {
              return true;
          }
          else if (typeof rule === 'string' && asset.endsWith(rule)) {
              return true;
          }
      }
  
      return false;
  }
docs: 判断是否符合指定的规则
  
  @param {string} asset 捕获的文件名
  @param {Array} rules 规则列表
  @return {boolean} 判断的结果