From 4e3103cb1c39e691bdd7dc16372eaa26ffe7d75e Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Sat, 2 Apr 2016 19:49:11 +0200 Subject: make regular expression 5.8 compatible diff --git a/lib/Monitoring/Plugin/Functions.pm b/lib/Monitoring/Plugin/Functions.pm index 5946c7d..d8ebdad 100644 --- a/lib/Monitoring/Plugin/Functions.pm +++ b/lib/Monitoring/Plugin/Functions.pm @@ -119,7 +119,7 @@ sub plugin_exit { # Setup output my $output = "$STATUS_TEXT{$code}"; if (defined $message && $message ne '') { - $output .= " - " unless $message =~ /^\h*\R/; + $output .= " - " unless $message =~ /^\s*\R/mxs; $output .= $message; } my $shortname = ($arg->{plugin} ? $arg->{plugin}->shortname : undef); -- cgit v0.10-9-g596f