Ignore:
Timestamp:
2023-10-06T18:16:42+13:00 (8 months ago)
Author:
davidb
Message:

More nuanced print statements

File:
1 edited

Legend:

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

    r38242 r38298  
    525525sub tidy_up_oid {
    526526    my ($OID) = @_;
    527     if ($OID =~ /[\.\/\\]/) {
    528     print STDERR "Identifier $OID contains periods or slashes(.\\\/), replacing them with _\n";
    529     $OID =~ s/[\.\\\/]/_/g; #replace periods and slasshes with _
     527    if ($OID =~ /\./) {
     528    print STDERR "Identifier $OID contains periods (.), replacing with _\n";
     529    $OID =~ s/\./_/g; #replace periods and slasshes with _
     530    }
     531    if ($OID =~ /[\/\\]/) {
     532    print STDERR "Identifier $OID contains slashes, replacing with _\n";
     533    $OID =~ s/[\\\/]/_/g; #replace periods and slasshes with _
    530534    }
    531535    if ($OID =~ /(%28)|(%29)/) {
Note: See TracChangeset for help on using the changeset viewer.