diff --git a/lib/semantic/version.rb b/lib/semantic/version.rb index 7eda70c..3a4452c 100644 --- a/lib/semantic/version.rb +++ b/lib/semantic/version.rb @@ -93,6 +93,7 @@ def <=> other_version def satisfies? other_version return true if other_version.strip == '*' + return false unless other_version.match(/\d/) parts = other_version.split(/(\d(.+)?)/, 2) comparator, other_version_string = parts[0].strip, parts[1].strip