diff options
| author | Markus Reiter | 2016-10-14 20:03:34 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-23 14:32:03 +0200 |
| commit | 1a0f8b8a02cfe8795e2128fb294e97bb67fb03f0 (patch) | |
| tree | d877104219e739733aacf73bd6f040f48bb2ff66 /Library/Homebrew/cask/lib/hbc/source/path_base.rb | |
| parent | 40b7e36746f679c41f97e627f2af0e898963925b (diff) | |
| download | brew-1a0f8b8a02cfe8795e2128fb294e97bb67fb03f0.tar.bz2 | |
Use slash-delimited regular expressions.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/source/path_base.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/source/path_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/source/path_base.rb b/Library/Homebrew/cask/lib/hbc/source/path_base.rb index 7d68e518b..4e4bdcf15 100644 --- a/Library/Homebrew/cask/lib/hbc/source/path_base.rb +++ b/Library/Homebrew/cask/lib/hbc/source/path_base.rb @@ -7,7 +7,7 @@ module Hbc # derived classes must define method self.me? def self.path_for_query(query) - Pathname.new(query).sub(%r{(\.rb)?$}, ".rb") + Pathname.new(query).sub(/(\.rb)?$/, ".rb") end attr_reader :path |
