Beispiel #1
0
def parse_version(name: str) -> str:
    return get_or_default(VERSION_REGEX.search(name), '0')
Beispiel #2
0
def parse_prerelease(match: Optional[Match]) -> str:
    return get_or_default(match, NOT_PRERELEASE)
Beispiel #3
0
def parse_revision(name: str) -> str:
    return get_or_default(REV_REGEX.search(name), '0')