MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / sanitizeAddress

Method sanitizeAddress

api/pkg/requests/message_index_request.go:57–63  ·  view source on GitHub ↗

getLimit gets the take as a string

(value string)

Source from the content-addressed store, hash-verified

55
56// getLimit gets the take as a string
57func (input *MessageIndex) sanitizeAddress(value string) string {
58 value = strings.TrimRight(value, " ")
59 if len(value) > 0 && value[0] == ' ' {
60 value = strings.Replace(value, " ", "+", 1)
61 }
62 return value
63}
64
65// getLimit gets the take as a string
66func (input *MessageIndex) getInt(value string) int {

Callers 1

SanitizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected