MCPcopy Create free account
hub / github.com/driangle/taskmd / normalizeLabel

Function normalizeLabel

apps/cli/internal/sync/mapper.go:41–43  ·  view source on GitHub ↗

normalizeLabel lowercases and replaces spaces with hyphens.

(label string)

Source from the content-addressed store, hash-verified

39
40// normalizeLabel lowercases and replaces spaces with hyphens.
41func normalizeLabel(label string) string {
42 return strings.ReplaceAll(strings.ToLower(label), " ", "-")
43}
44
45func mapField(value string, mapping map[string]string, fallback string) string {
46 if mapping != nil {

Callers 2

TestNormalizeLabelFunction · 0.85
MapExternalTaskFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNormalizeLabelFunction · 0.68