aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexis Hildebrandt2015-08-03 11:51:59 +0200
committerDominyk Tiller2015-08-05 20:19:40 +0100
commite9180b39f50ad5644f1f1a23fbc30f52b75d7aa5 (patch)
tree37ae41bc0c5d487f02807b252c4e27b3b0c5b88d /Library
parent65dbdccfc0c3e6ec519d20cf4561bfbacc60cae8 (diff)
downloadbrew-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.rb8
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