code: def match(pattern, text, no_escape=False, path_name=True, wild_star=True, period=False,
            case_fold=False):
      u
  
      regex = translate(pattern, no_escape=no_escape, path_name=path_name, wild_star=wild_star,
                        period=period, case_fold=case_fold, closed_regex=True)
      return regex.match(text) is not None
docs: u"""
      Matches text against the supplied wildmatch pattern.
  
      To get git's behavior, use the `wild_star` flag.
  
      Note that the EXTMATCH (ksh extended glob patterns) option is not available
  
      :type pattern: text_type
      :param pattern: A wildmatch pattern
      :type text: text_type
      :param text: The text to match
      :type no_escape: bool
      :param no_escape: Disable backslash escaping
      :type path_name: bool
      :param path_name: Separator (slash) in text cannot be matched by an asterisk, question-mark nor
                        bracket expression in pattern (only a literal).
      :type wild_star: bool
      :param wild_star: A True value forces the `path_name` flag to True. This allows the
                        double-asterisk `**` to match any (0 to many) number of directories
      :type period: bool
      :param period: A leading period in text cannot be matched by an asterisk, question-mark nor
                     bracket expression in pattern (only a literal). A period is "leading" if:
                     - it is the first character of `text`
                     OR
                     - path_name (or wild_star) is True and the previous character is a slash
      :type case_fold: bool
      :param case_fold: Perform a case insensitive match (GNU Extension)
      :rtype: bool
      :return: Result of the match