MCPcopy
hub / github.com/LawRefBook/Laws / isSection

Function isSection

scripts/convert.py:32–38  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

30
31
32def isSection(line) -> bool:
33 line = line.strip()
34 for pattern in section:
35 flag = re.search("^[【\((]{0,1}" + pattern + "[】\))]{0,1}$", line)
36 if flag:
37 return True
38 return False
39
40
41def isTitle(line) -> str:

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected