Don't extract purely-numeric strings like "1" either

This commit is contained in:
acli 2004-02-13 00:48:52 +00:00
parent a49634cb34
commit 250d1fcefc
1 changed files with 2 additions and 1 deletions

View File

@ -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+$/;
}
}