From b3df96855f429005aed31badc7363c89411e16ed Mon Sep 17 00:00:00 2001 From: fanxb Date: Sun, 4 Dec 2022 12:48:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96?= 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 a965ac4..81b008c 100644 --- a/openRenamerBackend/entity/bo/rules/AutoRule.ts +++ b/openRenamerBackend/entity/bo/rules/AutoRule.ts @@ -5,7 +5,7 @@ import path from 'path'; let pattern = new RegExp(/s(eason)?(\d+)/); let eNumPatternArr = [new RegExp(/e(\d+)/), new RegExp(/\((\d+)\)/), new RegExp(/((\d+))/), new RegExp(/\.(\d+)\./), new RegExp(/-(\d+)-/), new RegExp(/(\d+)/)]; -let resolutionPattern = new RegExp(/(\d+[pP])/); +let resolutionPattern = new RegExp(/(\d{3,}[pP])/); let resolutionArr = ['1k', '1K', '2k', '2K', '4k', '4K', '8k', '8K']; let charSet = new Set([' ', '[', '.', '(', '(']); export default class InsertRule implements RuleInterface {