code: func parseNameTag(tag, defaultName string) (string, string, error) {
  	fullNameTag := ""
  	name := defaultName
  
  	matches := namePattern0.FindStringSubmatch(tag)
  	if len(matches) == 2 {
  		fullNameTag = matches[0]
  		name = matches[1]
  	}
  
  	// filter out "trailing comma"
  	name = strings.TrimRight(name, " ,")
  
  	var err error
  	name, err = NormalizeName(name)
  	if err != nil {
  		return "", "", err
  	}
  
  	return fullNameTag, name, nil
  }
docs: // parseNameTag functions parses DOSA "name" tag