MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / normalizeWeeklyNoteTitlePattern

Function normalizeWeeklyNoteTitlePattern

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

Source from the content-addressed store, hash-verified

334}
335
336func normalizeWeeklyNoteTitlePattern(value string) string {
337 trimmed := strings.TrimSpace(strings.NewReplacer("/", "-", "\\", "-").Replace(value))
338 if trimmed == "" {
339 return DefaultWeeklyNoteTitlePattern
340 }
341 return trimmed
342}
343
344func normalizeWeeklyNoteLocale(value string) string {
345 trimmed := strings.TrimSpace(value)

Callers 2

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected