MatchesRevisionType🔗
Check that
text
is a valid revision string.
Code
pattern = (
'^(0|[1-9][0-9]*)$'
)
return match(
pattern,
text
) is not None
text
is a valid revision string.
pattern = (
'^(0|[1-9][0-9]*)$'
)
return match(
pattern,
text
) is not None