From 79f47eacb6a1209f150d669f802382d794f02c13 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Wed, 7 Aug 2024 09:43:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E6=9E=90=E8=87=AA=E5=BB=BA?= =?UTF-8?q?=E8=B0=B1=E6=96=87=E4=BB=B6=E5=87=BA=E7=8E=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E4=B8=BA0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/phdHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/phdHelper.js b/src/utils/phdHelper.js index 561d3e1..1efbf43 100644 --- a/src/utils/phdHelper.js +++ b/src/utils/phdHelper.js @@ -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 + '_'