From 1a0f8b8a02cfe8795e2128fb294e97bb67fb03f0 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 14 Oct 2016 20:03:34 +0200 Subject: Use slash-delimited regular expressions. --- Library/Homebrew/cask/lib/hbc/source/path_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cask/lib/hbc/source') 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 -- cgit v1.2.3