diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b9c385c32e..7390b8a86f 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