Skip to content

Commit

Permalink
tap_constants: allow formulae to have @ in name.
Browse files Browse the repository at this point in the history
Follow-up from #812 to fix handling fully-qualified versioned formulae
names.

Allows pulling Homebrew/homebrew-core#971.
  • Loading branch information
MikeMcQuaid authored and mistydemeo committed May 10, 2017
1 parent 3304b11 commit dc8d60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/tap_constants.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# match expressions when taps are given as ARGS, e.g. someuser/sometap
HOMEBREW_TAP_ARGS_REGEX = %r{^([\w-]+)/(homebrew-)?([\w-]+)$}
# match taps' formulae, e.g. someuser/sometap/someformula
HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$}
HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}
# match core's formulae, e.g. homebrew/homebrew/someformula
HOMEBREW_CORE_FORMULA_REGEX = %r{^homebrew/homebrew/([\w+-.]+)$}i
# match taps' directory paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap
Expand Down

0 comments on commit dc8d60d

Please sign in to comment.