Don't extract purely-numeric strings like "1" either
This commit is contained in:
parent
a49634cb34
commit
250d1fcefc
|
|
@ -232,8 +232,9 @@ sub text_extract (*) {
|
|||
}
|
||||
}
|
||||
}
|
||||
# Emit all extracted strings. Don't emit pure whitespace or pure numbers.
|
||||
for my $t (keys %text) {
|
||||
printf "%s\n", $t unless $t =~ /^(?:\s|\ )*$/s;
|
||||
printf "%s\n", $t unless $t =~ /^(?:\s|\ )*$/s || $t =~ /^\d+$/;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue