mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cask/utils: alllow use of @ in cask name
This commit is contained in:
parent
ea5f6dacd3
commit
74556fe97c
@ -111,9 +111,8 @@ module Cask
|
|||||||
def self.token_from(name)
|
def self.token_from(name)
|
||||||
name.downcase
|
name.downcase
|
||||||
.gsub("+", "-plus-")
|
.gsub("+", "-plus-")
|
||||||
.gsub("@", "-at-")
|
|
||||||
.gsub(/[ _·•]/, "-")
|
.gsub(/[ _·•]/, "-")
|
||||||
.gsub(/[^\w-]/, "")
|
.gsub(/[^\w@-]/, "")
|
||||||
.gsub(/--+/, "-")
|
.gsub(/--+/, "-")
|
||||||
.delete_prefix("-")
|
.delete_prefix("-")
|
||||||
.delete_suffix("-")
|
.delete_suffix("-")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user