MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / split_frontmatter

Function split_frontmatter

docs/website/scripts/split_courses.py:24–29  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

22
23
24def split_frontmatter(text: str) -> Tuple[str, str]:
25 if text.startswith("---\n"):
26 end = text.find("\n---\n", 4)
27 if end != -1:
28 return text[4:end], text[end + 5 :]
29 return "", text
30
31
32def parse_meta(frontmatter: str) -> dict:

Callers 1

processFunction · 0.70

Calls 1

findMethod · 0.65

Tested by

no test coverage detected