MCPcopy Create free account
hub / github.com/billryan/algorithm-exercise / get_title

Method get_title

scripts/parse_md.py:12–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 self.isSummary = isSummary
11
12 def get_title(self):
13 lines = open(self.fname)
14 for line in lines:
15 if re.match('^# ', line):
16 title = re.split(' - ', line)[2:]
17 break
18
19 return title

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected