diff options
author | Peter Powell <petpow@saberuk.com> | 2016-09-12 04:17:55 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-09-14 23:47:01 +0100 |
commit | 6c98c2987402d9e9310cad9af1bab523bd60cb51 (patch) | |
tree | 525a9ef23391f8578695183624b37345df83a4fe | |
parent | 4133ccb04386bf03a064a035ba9229106b65a3f6 (diff) |
Fix print_format breaking when formatting empty strings.
-rw-r--r-- | make/console.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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/; } |