code: function is(pattern, value) {
      if (pattern == value) return true;
  
      pattern = regexQuote(pattern);
  
      // Asterisks are translated into zero-or-more regular expression wildcards
      // to make it convenient to check if the strings starts with the given
      // pattern such as "library/*", making any string check convenient.
      pattern = pattern.replace(/\\\*/g, '.*');
      pattern = new RegExp('^' + pattern + '$');
  
      return pattern.test(value);
  }
docs: Determine if a given string matches a given pattern.
  
  @param {string} pattern
  @param {string} value
  @return bool