is
Valid
Version
Function to check the validity of a version
Return
whether the version is valid as Boolean
Parameters
version
: target version to check