Skip to content

Commit 02f2f8a

Browse files
committed
make regular expression 5.8 compatible
\R was introduced in 5.10 too
1 parent 4e3103c commit 02f2f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Monitoring/Plugin/Functions.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ sub plugin_exit {
119119
# Setup output
120120
my $output = "$STATUS_TEXT{$code}";
121121
if (defined $message && $message ne '') {
122-
$output .= " - " unless $message =~ /^\s*\R/mxs;
122+
$output .= " - " unless $message =~ /^\s*\n/mxs;
123123
$output .= $message;
124124
}
125125
my $shortname = ($arg->{plugin} ? $arg->{plugin}->shortname : undef);

0 commit comments

Comments
 (0)