|
@@ -201,12 +201,13 @@ var rationLibObj = {
|
|
|
*/
|
|
|
//@param {String}sectionName(章节名称) {Array}datas(定额数据)
|
|
|
function simplifyName(sectionName, datas){
|
|
|
+ debugger;
|
|
|
if (!sectionName || !datas || datas.length === 0) {
|
|
|
return;
|
|
|
}
|
|
|
//提取需要匹配的章节名称
|
|
|
// 去掉后缀
|
|
|
- const suffixReg = /[((]编码[::]\d+[))]/;
|
|
|
+ const suffixReg = /[((]编码[::]\w+[))]/;
|
|
|
const tempName = sectionName.split(suffixReg)[0];
|
|
|
// 获取第一个空格后的内容
|
|
|
const sReg = /\s(.+)/;
|