From e9180b39f50ad5644f1f1a23fbc30f52b75d7aa5 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 3 Aug 2015 11:51:59 +0200 Subject: [PATCH] audit: simplify command-line spelling check Closes Homebrew/homebrew#42403. Signed-off-by: Dominyk Tiller --- Library/Homebrew/cmd/audit.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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