linux: properly parse config choice when it's new
This commit is contained in:
parent
2208c360ac
commit
97056a0620
@ -54,8 +54,8 @@ sub runConfig {
|
|||||||
if ($s eq "\n") {
|
if ($s eq "\n") {
|
||||||
print STDERR "GOT: $line" if $debug;
|
print STDERR "GOT: $line" if $debug;
|
||||||
|
|
||||||
# Remember choice alternatives ("> 1. bla (FOO)" or " 2. bla (BAR)").
|
# Remember choice alternatives ("> 1. bla (FOO)" or " 2. bla (BAR) (NEW)").
|
||||||
if ($line =~ /^\s*>?\s*(\d+)\.\s+.*\(([A-Za-z0-9_]+)\)$/) {
|
if ($line =~ /^\s*>?\s*(\d+)\.\s+.*?\(([A-Za-z0-9_]+)\)(?:\s+\(NEW\))?\s*$/) {
|
||||||
$choices{$2} = $1;
|
$choices{$2} = $1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user