Skip to content

Commit

Permalink
drop non-alpnanumeric chars from Canonical Name
Browse files Browse the repository at this point in the history
following up on Homebrew#2659, further steps toward an algorithmic
derivation of Canonical Name from App Name.

Also add two rules about hyphens which are implied and already
followed by every Cask.
  • Loading branch information
rolandwalker committed Feb 25, 2014
1 parent 2934c2b commit 8d8493b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ To get from the App's canonical name to the Cask name:
* hyphens stay hyphens
* spaces become hyphens
* digits stay digits
* delete any character which is not alphanumeric or hyphen
* collapse a series of multiple hyphens into one hyphen
* delete a leading hyphen
* a leading digit gets spelled out into English: `1password` becomes `onepassword`

Casks are stored in a Ruby file matching their name.
Expand Down

0 comments on commit 8d8493b

Please sign in to comment.