From 664943a7b28a33fd5da4e9cc661acef249fa6095 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