Changeset 29461


Ignore:
Timestamp:
2014-11-21T17:48:52+13:00 (9 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.

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.