Changeset 7954


Ignore:
Timestamp:
2004-08-16T15:59:37+12:00 (20 years ago)
Author:
davidb
Message:

Minor tweak to regular expression that modifies white space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/sorttools.pm

    r5679 r7954  
    4040    $$stringref =~ s/[^a-z0-9 ]//g;
    4141    $$stringref =~ s/^\s*(the|a|an)\b//;
     42    $$stringref =~ s/\s+/ /g;
    4243    $$stringref =~ s/^\s+//;
     44    $$stringref =~ s/\s+$//;
    4345}
    4446
     
    5759    $$stringref =~ s/\s+/ /g;
    5860    $$stringref =~ s/^\s+//;
     61    $$stringref =~ s/\s+$//;
    5962
    6063   
Note: See TracChangeset for help on using the changeset viewer.