aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/source/path_base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/source/path_base.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/source/path_base.rb2
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