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;