1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-23 02:10:38 +02:00

boom/dist/dk/dk-catq.pl: category regexp was mis-designed and it had a typo.

This commit is contained in:
Werner Almesberger 2010-10-16 23:37:32 -03:00
parent 20517e107e
commit 310e8866bc

View File

@ -57,7 +57,7 @@ $url = $URL.$key;
if ($q[1] =~ /<title>Digi-Key</) { if ($q[1] =~ /<title>Digi-Key</) {
undef $found; undef $found;
for (@q) { for (@q) {
next unless /Cat=(\d+)[&"].*?>\s*([^,]*?)\s*</; next unless /Cat=(\d+)[&"].*?>\s*(.*?)\s*[(<]/;
next if $2 ne $cat; next if $2 ne $cat;
$found = $1; $found = $1;
last; last;