aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli/create.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-14 20:03:34 +0200
committerMarkus Reiter2016-10-23 14:32:03 +0200
commit1a0f8b8a02cfe8795e2128fb294e97bb67fb03f0 (patch)
treed877104219e739733aacf73bd6f040f48bb2ff66 /Library/Homebrew/cask/lib/hbc/cli/create.rb
parent40b7e36746f679c41f97e627f2af0e898963925b (diff)
downloadbrew-1a0f8b8a02cfe8795e2128fb294e97bb67fb03f0.tar.bz2
Use slash-delimited regular expressions.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli/create.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/create.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/create.rb b/Library/Homebrew/cask/lib/hbc/cli/create.rb
index 84537cdc1..3e2b9c191 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/create.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/create.rb
@@ -4,7 +4,7 @@ module Hbc
def self.run(*args)
cask_tokens = cask_tokens_from(args)
raise CaskUnspecifiedError if cask_tokens.empty?
- cask_token = cask_tokens.first.sub(%r{\.rb$}i, "")
+ cask_token = cask_tokens.first.sub(/\.rb$/i, "")
cask_path = Hbc.path(cask_token)
odebug "Creating Cask #{cask_token}"