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