diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index aeb59e7ebb..90fc7ceb36 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -219,7 +219,7 @@ class FormulaAuditor else version_text = s.version unless s.version.detected_from_url? version_url = Version.parse(s.url) - if version_url == version_text + if version_url.to_s == version_text.to_s problem "#{spec} version #{version_text} is redundant with version scanned from URL" end end