diff --git a/semantic_version/base.py b/semantic_version/base.py index 4ddaf05..428f685 100644 --- a/semantic_version/base.py +++ b/semantic_version/base.py @@ -560,10 +560,10 @@ def match(spec, version): return Spec(spec).match(Version(version)) -def validate(version_string): - """Validates a version string againt the SemVer specification.""" +def validate(version_string, partial=False): + """Validates a version string against the SemVer specification.""" try: - Version.parse(version_string) + Version.parse(version_string, partial) return True except ValueError: return False