From c53bcae849accd626cb75964ef237754624a654c Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Tue, 17 Nov 2020 20:32:20 -0600 Subject: [PATCH] Make ktest match for "keyswitch" token non-greedy The greedy match was including whitespace if more than one space character separated the "keyswitch" token and the first coordinate. Signed-off-by: Michael Richters --- testing/bin/ktest-to-cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/bin/ktest-to-cxx b/testing/bin/ktest-to-cxx index 68853570..a92fc8ef 100644 --- a/testing/bin/ktest-to-cxx +++ b/testing/bin/ktest-to-cxx @@ -88,7 +88,7 @@ sub load_from_text { }, keyswitch => sub { my $content = shift; - if ( $content =~ /^(.*)\s+(\d+)\s+(\d+)$/ ) { + if ( $content =~ /^(.*?)\s+(\d+)\s+(\d+)$/ ) { my $switch = $1; my $row = $2; my $col = $3;