MCPcopy Create free account
hub / github.com/Qinbf/groundmap / by_title

Function by_title

scripts/k.py:1566–1574  ·  view source on GitHub ↗
(secs)

Source from the content-addressed store, hash-verified

1564 return hit
1565 # 第二遍:按 title
1566 def by_title(secs):
1567 for s in secs:
1568 t = re.sub(r"\s+", " ", (s.get("title") or "").strip().lower())
1569 if t == target_title_norm:
1570 return s
1571 r = by_title(s.get("children", []))
1572 if r:
1573 return r
1574 return None
1575 return by_title(sections)
1576
1577

Callers 1

find_section_in_outlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected