]> dxcluster.net Git - spider.git/commitdiff
fix enhanced mode in console.pl
authorDirk Koopman <djk@tobit.co.uk>
Fri, 10 Dec 2021 23:53:57 +0000 (23:53 +0000)
committerDirk Koopman <djk@tobit.co.uk>
Fri, 10 Dec 2021 23:53:57 +0000 (23:53 +0000)
perl/console.pl

index 6c93d5ff44aca8e762d6caddefbc8898624ab99d..3fbc46fe64ab432169d125e1281c007b75a0b76a 100755 (executable)
@@ -245,7 +245,7 @@ sub addtotop
                        if (length $inbuf > $cols) {
                                $Text::Wrap::columns = $cols;
                                my $token;
-                               ($token) = $inbuf =~ m!^(.* de [-\w\d/\#]+\s+|\w{9}\@\d\d:\d\d:\d\d )!;
+                               ($token) = $inbuf =~ m!^(.* de [-\w\d/\#]+:?\s+|\w{9}\@\d\d:\d\d:\d\d )!;
                                $token ||= ' ' x 19;
                                push @sh, split /\n/, wrap('', ' ' x length($token), $inbuf);
                        } else {