Commit 0080b4f1 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor regex change; be more pedantic about <foo></foo> start/end tags.

parent 73367cff
......@@ -243,11 +243,9 @@ sub readXML($$$) {
undef($row);
}
}
elsif ($_ =~ /^\s*\<([-\w]+)\>(.*)\<\/([-\w]+)\>/) {
elsif ($_ =~ /^\s*\<([-\w]+)\>(.*)\<\/\1\>$/) {
fatal("Parser out of sync at entity: $_")
if (!defined($row));
fatal("Malformed (mismatch) entity: $1/$2/$3")
if ($1 ne $3);
#
# Always toss out pid/eid, since we insert our own!
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment