From ad0132925c86f64fab8e3cf7d0702572977178db Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 10:41:24 +0000 Subject: Updated to allow negative tests. --- lib/custodian/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index bb9958a..7e45760 100644 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -299,7 +299,7 @@ module Custodian new_line = "#{pre} must run ping #{post}" return( parse_line( new_line ) ) - elsif ( line =~ /^\S+\s+must\s+run\s+([^\s]+)(\s+|\.|$)/i ) + elsif ( line =~ /^\S+\s+must(\s+not)?\s+run\s+([^\s]+)(\s+|\.|$)/i ) # # Expand the macro if we should -- cgit v1.2.1