MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / split

Method split

src/licensedcode/frontmatter.py:49–54  ·  view source on GitHub ↗

Split text into frontmatter and content.

(self, text)

Source from the content-addressed store, hash-verified

47 return False
48
49 def split(self, text):
50 """
51 Split text into frontmatter and content.
52 """
53 _, fm, content = self.FM_BOUNDARY.split(text, 2)
54 return fm, content
55
56 def format(self, content, metadata, template=DEFAULT_POST_TEMPLATE, **kwargs):
57 """

Callers 15

clean_textFunction · 0.45
create_ruleMethod · 0.45
is_valid_short_matchFunction · 0.45
parse_frontmatterFunction · 0.45
get_textsFunction · 0.45
feFunction · 0.45
cbFunction · 0.45
HbFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected