diff options
| author | Alexis Hildebrandt | 2015-08-03 11:51:59 +0200 |
|---|---|---|
| committer | Dominyk Tiller | 2015-08-05 20:19:40 +0100 |
| commit | e9180b39f50ad5644f1f1a23fbc30f52b75d7aa5 (patch) | |
| tree | 37ae41bc0c5d487f02807b252c4e27b3b0c5b88d /Library | |
| parent | 65dbdccfc0c3e6ec519d20cf4561bfbacc60cae8 (diff) | |
| download | brew-e9180b39f50ad5644f1f1a23fbc30f52b75d7aa5.tar.bz2 | |
audit: simplify command-line spelling check
Closes Homebrew/homebrew#42403.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b9c385c32..7390b8a86 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -360,12 +360,8 @@ class FormulaAuditor EOS end - if desc =~ /[Cc]ommandline/ - problem "It should be \"command-line\", not \"commandline\"." - end - - if desc =~ /[Cc]ommand line/ - problem "It should be \"command-line\", not \"command line\"." + if desc =~ %r[([Cc]ommand ?line)] + problem "Description should use \"command-line\" instead of \"#{$1}\"" end end |
