From 6c98c2987402d9e9310cad9af1bab523bd60cb51 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 12 Sep 2016 04:17:55 +0100 Subject: Fix print_format breaking when formatting empty strings. --- make/console.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/console.pm b/make/console.pm index 8cdb56a21..84fbaae4a 100644 --- a/make/console.pm +++ b/make/console.pm @@ -57,7 +57,7 @@ sub __console_format($$) { sub print_format($;$) { my $message = shift; my $stream = shift // *STDOUT; - while ($message =~ /(<\|(\S+)\s(.+?)\|>)/) { + while ($message =~ /(<\|(\S+)\s(.*?)\|>)/) { my $formatted = __console_format $2, $3; $message =~ s/\Q$1\E/$formatted/; } -- cgit v1.2.3