From 851234ab765ebbdf28bbe31057266d9c02918c62 Mon Sep 17 00:00:00 2001 From: fanxb Date: Sun, 25 Jun 2023 22:10:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BC=98=E5=8C=96=E9=9B=86=E6=95=B0?= =?UTF-8?q?=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openRenamerBackend/entity/bo/rules/AutoRule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openRenamerBackend/entity/bo/rules/AutoRule.ts b/openRenamerBackend/entity/bo/rules/AutoRule.ts index ced71e4..b992505 100644 --- a/openRenamerBackend/entity/bo/rules/AutoRule.ts +++ b/openRenamerBackend/entity/bo/rules/AutoRule.ts @@ -58,7 +58,7 @@ export default class InsertRule implements RuleInterface { } } else if (this.type === 'eNum') { let lowName = file.originName.toLocaleLowerCase().replace(/ /g, '') - .replace(/\d+[a-df-z]/g, '')//去除4k,1080p等 + .replace(/\d+[kp]/g, '')//去除4k,1080p等 .replace(/[xh]\d+/g, '')//去除x264,h264等 ; for (let i in eNumPatternArr) { let patternRes = lowName.match(eNumPatternArr[i]);