Changeset 29461

Show
Ignore:
Timestamp:
21.11.2014 17:48:52 (4 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed a bug where import/build perl script arguments that are purely punctuation are discarded. This became a problem, and was noticed by a member on the mailing list, when setting the removesuffix option on the List classifier to remove all starting period marks. Since the regex param contained only punctuation characters, the regex param value was discarded by collConfigxml.pm, but needed to be preserved. Other elements' param values do not need this special handling.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/collConfigxml.pm

    r29422 r29461  
    342342        push (@{$data->{$key}->[$currentIndex]}, $name); 
    343343    } 
    344     if (defined $value and $value =~ /\w/) { 
     344    if (defined $value and $value !~ /^\s*$/) { 
    345345            push (@{$data->{$key}->[$currentIndex]}, $value); 
    346346    }