Changeset 11920


Ignore:
Timestamp:
2006-06-15T14:53:08+12:00 (18 years ago)
Author:
mdewsnip
Message:

Removed the code that converts the filename into a regular expression, since the metadata_read code makes a complete mess of it on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/CSVPlug.pm

    r11918 r11920  
    153153    delete $csv_line_metadata{"Filename"};
    154154
    155     # Convert the filename to a regular expression, and associate the metadata
    156     my $csv_line_filename_regexp = $csv_line_filename;
    157     $csv_line_filename_regexp =~ s/\./\\./g;  # Escape any dots
    158     $csv_line_filename_regexp =~ s/\(/\\\(/g;  # Escape any parentheses
    159     $csv_line_filename_regexp =~ s/\)/\\\)/g;  # Escape any parentheses
    160     $extrametadata->{$csv_line_filename_regexp} = \%csv_line_metadata;
    161     push(@$extrametakeys, $csv_line_filename_regexp);
     155    # Associate the metadata now
     156    $extrametadata->{$csv_line_filename} = \%csv_line_metadata;
     157    push(@$extrametakeys, $csv_line_filename);
    162158    }
    163159}
Note: See TracChangeset for help on using the changeset viewer.