aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-12-06 12:29:16 -0500
committerJack Nagel2014-12-06 15:02:49 -0500
commit4026e035add50aaf5627587e5b59ea149f3b57fd (patch)
tree04b8839510837f72c8e5b9a3d324e21a143797c4
parent01dc112b607d2c4707c8835be9b122109088fd75 (diff)
downloadbrew-4026e035add50aaf5627587e5b59ea149f3b57fd.tar.bz2
Use start_with? instead of a regexp
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index a8092dae0..d18971d05 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