fix per project team email to parsing issue with empty doc security tag

This commit is contained in:
sbarstow 2020-04-20 13:17:29 -04:00
parent 257d4e6db2
commit 0ac53360b2

View File

@ -76,7 +76,7 @@ function parse_ext_props(data, p, opts) {
EXT_PROPS.forEach(function(f) {
var xml = (data.match(matchtag(f[0]))||[])[1];
switch(f[2]) {
case "string": p[f[1]] = unescapexml(xml||""); break;
case "string": if(xml) p[f[1]] = unescapexml(xml); break;
case "bool": p[f[1]] = xml === "true"; break;
case "raw":
var cur = data.match(new RegExp("<" + f[0] + "[^>]*>([\\s\\S]*?)<\/" + f[0] + ">"));