lib/flapjack/jabber.rb in flapjack-0.6.42 vs lib/flapjack/jabber.rb in flapjack-0.6.43

- old
+ new

@@ -175,10 +175,10 @@ msg += "Boot time: #{boot_time}\n" msg += "User CPU Time: #{t.utime}\n" msg += "System CPU Time: #{t.stime}\n" msg += `uname -a`.chomp + "\n" - when command =~ /^test notifications for\s+([a-z0-9-]+)(:(.+))?$/i + when command =~ /^test notifications for\s+([a-z0-9\-\.]+)(:(.+))?$/i entity_name = $1 check_name = $3 ? $3 : 'test' msg = "so you want me to test notifications for entity: #{entity_name}, check: #{check_name} eh? ... well OK!"