diff options
| author | Jack Nagel | 2014-12-06 12:29:16 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-06 15:02:49 -0500 |
| commit | 4026e035add50aaf5627587e5b59ea149f3b57fd (patch) | |
| tree | 04b8839510837f72c8e5b9a3d324e21a143797c4 /Library | |
| parent | 01dc112b607d2c4707c8835be9b122109088fd75 (diff) | |
| download | brew-4026e035add50aaf5627587e5b59ea149f3b57fd.tar.bz2 | |
Use start_with? instead of a regexp
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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 |
