MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _parse_semver

Function _parse_semver

IntelOSINT.py:22111–22119  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

22109 return jsonify({"status": "ok", "examples": out})
22110
22111def _parse_semver(v):
22112 raw = str(v or "").strip().lower().lstrip("v")
22113 parts = re.findall(r"\d+", raw)
22114 if not parts:
22115 return (0, 0, 0)
22116 nums = [int(x) for x in parts[:3]]
22117 while len(nums) < 3:
22118 nums.append(0)
22119 return tuple(nums)
22120
22121def _resolve_github_repo_slug():
22122 env_slug = (os.environ.get("INTELOSINT_GITHUB_REPO") or "").strip()

Callers 1

update_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected