Changeset 2363


Ignore:
Timestamp:
2001-05-04T14:58:33+12:00 (23 years ago)
Author:
jrm21
Message:

fixed nasty bug where </srclink></a><srclink> was being matched
incorrectly, creating a new tag that was swallowing next line, which
happens to be <Identifier>... anyway, fixed regexp and we can now actually
get away with not escaping the text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/GMLPlug.pm

    r2326 r2363  
    141141            ($metadata,$text)
    142142            = ($text =~ m/\s*<metadata>\s*(<.*)\s*<\/metadata>(.*)$/s);
     143
     144            # note: \1 refers to 1st match within regexp, so we can
     145            # handle the unescaped text here...
    143146            while ((defined $metadata)
    144                && ($metadata =~ s/<(.*?)>(.*?)<\/.*?>//s))
     147               && ($metadata =~ s/<(.*?)>(.*?)<\/\1>//s))
    145148            {
    146149            if (defined $1 && defined $2)
Note: See TracChangeset for help on using the changeset viewer.