|
@@ -519,7 +519,9 @@ INTERFACE_EXPORT = (() => {
|
|
|
// chaptNo = (node.data.name || '').replace(/[^0-9]/g, '')
|
|
// chaptNo = (node.data.name || '').replace(/[^0-9]/g, '')
|
|
|
chaptNo = `${(index + 1) * 100}`;
|
|
chaptNo = `${(index + 1) * 100}`;
|
|
|
for (const proKey in chapterMap) {
|
|
for (const proKey in chapterMap) {
|
|
|
- if (node.data.name && node.data.name.indexOf(proKey) >= 0) {
|
|
|
|
|
|
|
+ let bName = node.data.name || '';
|
|
|
|
|
+ bName = bName.replace(/''/g, '');
|
|
|
|
|
+ if (bName.indexOf(proKey) >= 0) {
|
|
|
chaptNo = `${chapterMap[proKey]}`;
|
|
chaptNo = `${chapterMap[proKey]}`;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
@@ -665,7 +667,9 @@ INTERFACE_EXPORT = (() => {
|
|
|
lnStr = `${(index + 1) * 100}`;
|
|
lnStr = `${(index + 1) * 100}`;
|
|
|
// lnStr = getBillSection(node);
|
|
// lnStr = getBillSection(node);
|
|
|
for (const proKey in chapterMap) {
|
|
for (const proKey in chapterMap) {
|
|
|
- if (node.data.name && node.data.name.indexOf(proKey) >= 0) {
|
|
|
|
|
|
|
+ let bName = node.data.name || '';
|
|
|
|
|
+ bName = bName.replace(/''/g, '');
|
|
|
|
|
+ if (bName.indexOf(proKey) >= 0) {
|
|
|
lnStr = `${chapterMap[proKey]}`;
|
|
lnStr = `${chapterMap[proKey]}`;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|