|
@@ -1363,7 +1363,7 @@ const XMLStandard = (function () {
|
|
|
let source = {name: '', value: ''};
|
|
|
let execRst = reg.exec(f);
|
|
|
if (execRst) {
|
|
|
- source.name = execRst[1].trim(); //去除开头(1.)序号,首位空格 -- execRst[1].replace(/^\d+\.{1}/, '').trim();
|
|
|
+ source.name = execRst[1].trim(); //去除开头(1.)序号,首位空格 -- 20220509 需要开头的数据的(1.)序号 execRst[1].replace(/^\d+\.{1}/, '').trim();
|
|
|
source.value = execRst[2].trim();
|
|
|
}
|
|
|
let featureEle = new Feature(source);
|
|
@@ -1376,7 +1376,7 @@ const XMLStandard = (function () {
|
|
|
if (job.length > 0) {
|
|
|
let jobContent = new JobContent();
|
|
|
for (let j of job) {
|
|
|
- let data = j.trim(); //j.replace(/^\d+\.{1}/, '').trim()
|
|
|
+ let data = j.trim(); //j.replace(/^\d+\.{1}/, '').trim() -- 20220509 需要开头的数据的(1.)序号
|
|
|
let content = new Content(data);
|
|
|
//let content = new Content(j.trim());
|
|
|
jobContent.children.push(content);
|