We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e3103c commit 02f2f8aCopy full SHA for 02f2f8a
lib/Monitoring/Plugin/Functions.pm
@@ -119,7 +119,7 @@ sub plugin_exit {
119
# Setup output
120
my $output = "$STATUS_TEXT{$code}";
121
if (defined $message && $message ne '') {
122
- $output .= " - " unless $message =~ /^\s*\R/mxs;
+ $output .= " - " unless $message =~ /^\s*\n/mxs;
123
$output .= $message;
124
}
125
my $shortname = ($arg->{plugin} ? $arg->{plugin}->shortname : undef);
0 commit comments