From 4026e035add50aaf5627587e5b59ea149f3b57fd Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 6 Dec 2014 12:29:16 -0500 Subject: [PATCH] Use start_with? instead of a regexp --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index a8092dae00..d18971d052 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -364,7 +364,7 @@ end class SubversionDownloadStrategy < VCSDownloadStrategy def initialize(name, resource) super - @url = @url.sub(/^svn\+/, "") if @url =~ %r[^svn\+http://] + @url = @url.sub(/^svn\+/, "") if @url.start_with?("svn+http://") end def repo_url