diff --git a/gen.pl b/gen.pl
index 66747b653f9655bc8e6ce2870bbfa0ee3e61d580..ab4536973f685010aa303bdfa25d0e3d7bb423c0 100755
--- a/gen.pl
+++ b/gen.pl
@@ -101,7 +101,7 @@ while (<>) {
        "option"  => $2,
        "correct" => $1 eq "+" ? JSON::true : $1 eq "-" ? JSON::false : JSON::null
       );
-  } elsif (/^.+$/) {		# non-empty line
+  } elsif (/^.*$/) {		# non-empty line
     $last_option{"comment"} .= $_;
   }
 }