summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-05-05 00:40:51 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-05-05 00:40:51 (GMT)
commit5d6fd49202baffccedc7a6f5f4dfdf8d47ef6fe2 (patch)
tree8f3fdb96a5342fd03a5a4d3bcc444ac869e273a2
parentd0cdd7924b0984e82b9282b4f7fd91094ea8ca61 (diff)
downloadmisc-5d6fd49202baffccedc7a6f5f4dfdf8d47ef6fe2.zip
misc-5d6fd49202baffccedc7a6f5f4dfdf8d47ef6fe2.tar.gz
misc-5d6fd49202baffccedc7a6f5f4dfdf8d47ef6fe2.tar.bz2
bom/calc.pl: nasty typo caused only last digit of BOM quantities to be used
E.g., multiples of 10 would become 0.
-rwxr-xr-xbom/calc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bom/calc.pl b/bom/calc.pl
index e7286f2..dd04448 100755
--- a/bom/calc.pl
+++ b/bom/calc.pl
@@ -282,7 +282,7 @@ if ($#ARGV == -1) {
while (<>) {
next if /^#/;
next if /^\s*$/;
- die unless /^(\d)+\s+(\S+)\s+(\S+)\s*(\S*)/;
+ die unless /^(\d+)\s+(\S+)\s+(\S+)\s*(\S*)/;
&part($1, $2, $3, $4) if $1;
}
} else {