(s string)
| 115 | } |
| 116 | |
| 117 | func sanitizeFilePart(s string) string { |
| 118 | out := strings.TrimSpace(s) |
| 119 | replacers := []string{"/", "_", "\\", "_", ":", "_", " ", "-"} |
| 120 | for i := 0; i < len(replacers); i += 2 { |
| 121 | out = strings.ReplaceAll(out, replacers[i], replacers[i+1]) |
| 122 | } |
| 123 | return out |
| 124 | } |
| 125 | |
| 126 | func labelForVertex(projectID, email string) string { |
| 127 | p := strings.TrimSpace(projectID) |