GetNoZebraIndexes() regex now handles naughty whitespace (read: tabs)
authorMason James <mtj@ezeke.liblime.com>
Tue, 20 Nov 2007 03:12:57 +0000 (21:12 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 20 Nov 2007 22:29:33 +0000 (16:29 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 73f44dc..9658db8
@@ -3091,10 +3091,13 @@ sub GetNoZebraIndexes {
     my %indexes;
     foreach my $line (split /('|"),/,$index) {
         $line =~ /(.*)=>(.*)/;
+warn $line;
         my $index = substr($1,1); # get the index, don't forget to remove initial ' or "
         my $fields = $2;
-        $index =~ s/'|"| //g;
-        $fields =~ s/'|"| //g;
+        $index =~ s/'|"|\s//g;
+
+
+        $fields =~ s/'|"|\s//g;
         $indexes{$index}=$fields;
     }
     return %indexes;