MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / _extract_version

Function _extract_version

app/utils/fe_version.py:38–48  ·  view source on GitHub ↗

Extract the version string from the page content.

(page_content: str)

Source from the content-addressed store, hash-verified

36
37
38def _extract_version(page_content: str) -> Optional[str]:
39 """Extract the version string from the page content."""
40 if not page_content:
41 return None
42
43 matches = _version_pattern.findall(page_content)
44 if not matches:
45 return None
46
47 # Choose the highest lexical value to guard against mixed versions.
48 return max(matches)
49
50
51

Callers 1

get_latest_fe_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected