MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / normalizeDailyNoteTitlePattern

Function normalizeDailyNoteTitlePattern

apps/server/internal/vault/vault.go:312–318  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

310}
311
312func normalizeDailyNoteTitlePattern(value string) string {
313 trimmed := strings.TrimSpace(strings.NewReplacer("/", "-", "\\", "-").Replace(value))
314 if trimmed == "" {
315 return DefaultDailyNoteTitlePattern
316 }
317 return trimmed
318}
319
320func normalizeDailyNoteLocale(value string) string {
321 trimmed := strings.TrimSpace(value)

Callers 2

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected