summaryrefslogtreecommitdiffstats
path: root/lib/Monitoring/Plugin
diff options
context:
space:
mode:
authorTon Voon <ton.voon@opsview.com>2021-02-02 18:21:22 +0000
committerTon Voon <ton.voon@opsview.com>2021-02-02 18:21:22 +0000
commit7fe1e44fb792626c17f373d785d9ee0e49eb1eb6 (patch)
tree2734b29c26d5100ce5757a43e0ff4b1af5a46309 /lib/Monitoring/Plugin
parent3035ed03d86da7f36ba873e0027d7d3a30504256 (diff)
downloadmonitoring-plugin-perl-fix_munged_hyphen.tar.gz
Fix an incorrect hyphen removal due to a double linefeedfix_munged_hyphen
Diffstat (limited to 'lib/Monitoring/Plugin')
-rw-r--r--lib/Monitoring/Plugin/Functions.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Monitoring/Plugin/Functions.pm b/lib/Monitoring/Plugin/Functions.pm
index 3eaf9e3..cc938e5 100644
--- a/lib/Monitoring/Plugin/Functions.pm
+++ b/lib/Monitoring/Plugin/Functions.pm
@@ -119,7 +119,7 @@ sub plugin_exit {
119 # Setup output 119 # Setup output
120 my $output = "$STATUS_TEXT{$code}"; 120 my $output = "$STATUS_TEXT{$code}";
121 if (defined $message && $message ne '') { 121 if (defined $message && $message ne '') {
122 $output .= " - " unless $message =~ /^\s*\n/mxs; 122 $output .= " - " unless $message =~ /^\s*[\n\r]/;
123 $output .= $message; 123 $output .= $message;
124 } 124 }
125 my $shortname = ($arg->{plugin} ? $arg->{plugin}->shortname : undef); 125 my $shortname = ($arg->{plugin} ? $arg->{plugin}->shortname : undef);