summaryrefslogtreecommitdiff
path: root/make/console.pm
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-09-12 04:17:55 +0100
committerPeter Powell <petpow@saberuk.com>2016-09-14 23:47:01 +0100
commit6c98c2987402d9e9310cad9af1bab523bd60cb51 (patch)
tree525a9ef23391f8578695183624b37345df83a4fe /make/console.pm
parent4133ccb04386bf03a064a035ba9229106b65a3f6 (diff)
Fix print_format breaking when formatting empty strings.
Diffstat (limited to 'make/console.pm')
-rw-r--r--make/console.pm2
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/;
}