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

Function regexpMatchScheme

apps/server/internal/vault/parse.go:161–163  ·  view source on GitHub ↗
(href string)

Source from the content-addressed store, hash-verified

159var schemeRe = regexp.MustCompile(`^[a-zA-Z][a-zA-Z\d+.\-]*:`)
160
161func regexpMatchScheme(href string) (bool, error) {
162 return schemeRe.MatchString(href), nil
163}
164
165// BuildExcerpt makes a short plaintext preview from markdown.
166func BuildExcerpt(body string) string {

Callers 1

BodyHasLocalAssetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected