Changeset 38298 for main/trunk/greenstone2
- Timestamp:
- 2023-10-06T18:16:42+13:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/util.pm
r38242 r38298 525 525 sub tidy_up_oid { 526 526 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 _ 530 534 } 531 535 if ($OID =~ /(%28)|(%29)/) {
Note:
See TracChangeset
for help on using the changeset viewer.