From b1b39b1f89f1b7c0a9fdccb1b8000957bedaf6b7 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 9 Nov 2014 17:43:14 +0100 Subject: [PATCH] Strip trailing whitespace from engine ids (needed for Komodo). --- Engine.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine.pm b/Engine.pm index 4d05750..c364ae5 100644 --- a/Engine.pm +++ b/Engine.pm @@ -46,7 +46,7 @@ sub _anyevent_handle_line { if (!$engine->{'seen_uciok'}) { # Gobble up lines until we see uciok. - if ($line =~ /^id (\S+) (.*)$/) { + if ($line =~ /^id (\S+) (.*?)\s*$/) { $engine->{'id'}->{$1} = $2; } elsif ($line =~ /^uciok$/) { $engine->{'seen_uciok'} = 1; -- 2.39.2