whole_func_string: function hasMatchingTagName(regex) {
    return function(node) {
      if (!node.tagName) {
        return false;
      }
      return regex.test(node.tagName.toLowerCase());
    };
  }
func_code_string: function hasMatchingTagName(regex) {
    return function(node) {
      if (!node.tagName) {
        return false;
      }
      return regex.test(node.tagName.toLowerCase());
    };
  }
func_documentation_string: Returns true if `regex.match(tagName)` finds a match.
  
  This will use the lowercased tagName for comparison.