Skip to content

Commit

Permalink
Merge pull request #18009 from reitermarkus/token-auditor
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Aug 12, 2024
2 parents f021b7f + b0508fe commit 457a408
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
Expand Up @@ -15,7 +15,7 @@
)

# Match a cask token.
HOMEBREW_TAP_CASK_TOKEN_REGEX = T.let(/(?<token>[a-z0-9\-_]+(?:@[a-z0-9\-_.]+)?)/, Regexp)
HOMEBREW_TAP_CASK_TOKEN_REGEX = T.let(/(?<token>[\w+\-.@]+)/, Regexp)
# Match taps' casks, e.g. `someuser/sometap/somecask`.
HOMEBREW_TAP_CASK_REGEX = T.let(
%r{\A(?<user>[^/]+)/(?<repo>[^/]+)/#{HOMEBREW_TAP_CASK_TOKEN_REGEX.source}\Z},
Expand Down

0 comments on commit 457a408

Please sign in to comment.