fix: 解析自建谱文件出现文件名为0的问题
This commit is contained in:
parent
12cdef2ae1
commit
79f47eacb6
|
@ -201,7 +201,7 @@ export class PHDParser {
|
|||
getFilePrefixes(text) {
|
||||
const unHandledfilePrefixes = this.splitLineText(text)
|
||||
const filePrefixes = unHandledfilePrefixes
|
||||
.filter(filePrefix => filePrefix)
|
||||
.filter(filePrefix => filePrefix && filePrefix !== '0')
|
||||
.map(filePrefix => {
|
||||
filePrefix = filePrefix.replace(/(\d{4})\/(\d{2})\/(\d{2})-(\d{2}):(\d{2})(:\d{2}\.\d)?/, '$1$2$3_$4$5')
|
||||
return filePrefix + '_'
|
||||
|
|
Loading…
Reference in New Issue
Block a user