code: function match(str, patterns) {
      var matched = false;
      if (!_.is(patterns, 'Array')) {
        patterns = [patterns];
      }
      patterns.every(function(pattern) {
        if (!pattern) {
          return true;
        }
        matched = matched || str.search(normalize(pattern)) > -1;
        return !matched;
      });
      return matched;
    }
docs: 判断str是否符合patterns中的匹配规则