@@ -2,5 +2,5 @@
* 文件名格式化
*/
export function nameReportFormat(name) {
- return name.match(/-(\S*).ureport.xml/)[1];
+ return name.includes('-')? name.match(/-(\S*).ureport.xml/)[1]: name.match(/(\S*).ureport.xml/)[1];
}