From 9ceeab77949b0695e5c77a0694a0667020b895a8 Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 19 Apr 2004 00:04:02 +0000 Subject: [PATCH] allow tol in desc --- farnell/farnell-resistor-convert.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/farnell/farnell-resistor-convert.pl b/farnell/farnell-resistor-convert.pl index 8c95ed3..61e5373 100755 --- a/farnell/farnell-resistor-convert.pl +++ b/farnell/farnell-resistor-convert.pl @@ -16,7 +16,8 @@ if (@ARGV>=2) { while () { if (m/^Avail\s/) { undef $value; - } elsif (m/^Description\s+\[$kind (\d[0-9MKR]+)\]\s+RESISTOR/) { + } elsif ( + m/^Description\s+\[$kind (\d[0-9MKR]+)(?:\s[0-9.]+\%)?\]\s+RESISTOR/) { $value= lc $1; } elsif (m/^Description\s+(\S.*)/) { print "# $1\n"; -- 2.30.2