X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=hwdb%2Fids-update.pl;h=5782bb51ef6a6fcf7b5569037b966780e0e1b240;hp=13596b85c31913720c84ca2bc6ddb30dfa0aa643;hb=f2f1861383c5cf4c07a7c6098d7c0b7134f06d51;hpb=2f8d077ece024b985f2501dc8c904c2d29967acb diff --git a/hwdb/ids-update.pl b/hwdb/ids-update.pl index 13596b85c..5782bb51e 100755 --- a/hwdb/ids-update.pl +++ b/hwdb/ids-update.pl @@ -219,6 +219,7 @@ sub oui { open(IN, "<", "iab.txt"); while (my $line = ) { + $line =~ s/^ +//; $line =~ s/\s+$//; $line =~ m/^([0-9A-F]{2})-([0-9A-F]{2})-([0-9A-F]{2})\s*\(hex\)\s*.+$/; if (defined $1) { @@ -241,6 +242,7 @@ sub oui { open(IN, "<", "oui.txt"); while (my $line = ) { + $line =~ s/^ +//; $line =~ s/\s+$//; $line =~ m/^([0-9A-F]{6})\s*\(base 16\)\s*(.+)$/; if (defined $1) {