diff options
| author | Jack Nagel | 2014-12-06 12:29:16 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-06 15:02:49 -0500 |
| commit | 61982489384e55ad7214383e014c72c7a9f00e9b (patch) | |
| tree | 8309f2d46aa2b1a1dc44cfdea2caf30806296810 /Library | |
| parent | f6a061044399c9d2c3e574e0dc0464e7ae0c023d (diff) | |
| download | homebrew-61982489384e55ad7214383e014c72c7a9f00e9b.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 |
