code: def _validate_tld_match(self, text, matched_tld, tld_pos):
          
          if tld_pos > len(text):
              return False
  
          right_tld_pos = tld_pos + len(matched_tld)
          if len(text) > right_tld_pos:
              if text[right_tld_pos] in self._after_tld_chars:
                  if tld_pos > 0 and text[tld_pos - 1] \
                          not in self._stop_chars_left:
                      return True
          else:
              if tld_pos > 0 and text[tld_pos - 1] not in self._stop_chars_left:
                  return True
  
          return False
docs: Validate TLD match - tells if at found position is really TLD.
  
          :param str text: text where we want to find URLs
          :param str matched_tld: matched TLD
          :param int tld_pos: position of matched TLD
          :return: True if match is valid, False otherwise
          :rtype: bool