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

Function isAlpha

sdk/go/parser/markdown.go:189–199  ·  view source on GitHub ↗

isAlpha returns true if s is non-empty and all characters are lowercase letters.

(s string)

Source from the content-addressed store, hash-verified

187
188// isAlpha returns true if s is non-empty and all characters are lowercase letters.
189func isAlpha(s string) bool {
190 if len(s) == 0 {
191 return false
192 }
193 for _, c := range s {
194 if c < 'a' || c > 'z' {
195 return false
196 }
197 }
198 return true
199}
200
201// matchFullUUID checks if name starts with a full UUID (8-4-4-4-12 hex pattern).
202// Returns the UUID, remaining slug, and whether it matched.

Callers 1

splitFilenameIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected