Changeset 2685 for trunk


Ignore:
Timestamp:
2001-08-02T14:01:41+12:00 (23 years ago)
Author:
jrm21
Message:

Improved regex for when the last category is too small, and we need to
work out the name of the previous one. (regexp now works with both year
and year_month).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/DateList.pm

    r2632 r2685  
    221221    # add final sub-classification
    222222    if ((scalar (@currentOIDs) < $min) && (scalar (@currentOIDs) > 0)) {
    223     my ($newkey) = $lastkey =~ /^(\d\d\d\d)/;
     223    # want every thing in previous up to the dash
     224    my ($newkey) = $lastkey =~ /^([^\-]+)/;
    224225    @currentOIDs = (@{$compactedhash->{$lastkey}}, @currentOIDs);
    225226    delete $compactedhash->{$lastkey};
Note: See TracChangeset for help on using the changeset viewer.