MatchesXsShort🔗
Check that
text conforms to the pattern of an xs:short.
Code
short_rep = r"[\-+]?0*[0-9]{1,5}"
pattern = f"^{short_rep}$"
return match(pattern, text) is not None