MCPcopy Create free account
hub / github.com/VectifyAI/PageIndex / get_first_start_page_from_text

Function get_first_start_page_from_text

pageindex/utils.py:248–253  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

246 return text
247
248def get_first_start_page_from_text(text):
249 start_page = -1
250 start_page_match = re.search(r'<start_index_(\d+)>', text)
251 if start_page_match:
252 start_page = int(start_page_match.group(1))
253 return start_page
254
255def get_last_start_page_from_text(text):
256 start_page = -1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected