MCPcopy
hub / github.com/apache/devlake / AddMissingSlashToURL

Function AddMissingSlashToURL

backend/helpers/pluginhelper/api/api_client.go:486–492  ·  view source on GitHub ↗

AddMissingSlashToURL FIXME ...

(baseUrl *string)

Source from the content-addressed store, hash-verified

484
485// AddMissingSlashToURL FIXME ...
486func AddMissingSlashToURL(baseUrl *string) {
487 pattern := `\/$`
488 isMatch, _ := regexp.Match(pattern, []byte(*baseUrl))
489 if !isMatch {
490 *baseUrl += "/"
491 }
492}
493
494// RemoveStartingSlashFromPath FIXME ...
495func RemoveStartingSlashFromPath(relativePath string) string {

Callers 1

GetURIStringPointerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected