Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ parse_version_tuple
Function
parse_version_tuple
tools/prepare_lief.py:96–100 ·
view source on GitHub ↗
(version: str)
Source
from the content-addressed store, hash-verified
94
95
96
def
parse_version_tuple(version: str):
97
m = re.match(r
"^(\d+)\.(\d+)\.(\d+)$"
, version)
98
if
not m:
99
return
(0, 0, 0)
100
return
tuple(int(x)
for
x in m.groups())
101
102
103
def
main():
Callers
nothing calls this directly
Calls
2
int
Function · 0.85
match
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…