MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / sanitizeFilePart

Function sanitizeFilePart

internal/cmd/vertex_import.go:117–124  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

115}
116
117func 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
126func labelForVertex(projectID, email string) string {
127 p := strings.TrimSpace(projectID)

Callers 1

DoVertexImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected