From 73e9ae2ad3c8d4ef10f43df8515db039bc0c1b55 Mon Sep 17 00:00:00 2001 From: frostime Date: Tue, 30 Jul 2024 21:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(rule):=20backlink=20validate?= =?UTF-8?q?=20rule=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/rules.ts b/src/model/rules.ts index a3b634b..5ddfe25 100644 --- a/src/model/rules.ts +++ b/src/model/rules.ts @@ -82,7 +82,7 @@ export class Backlinks extends MatchRule { } validateInput(): boolean { - return matchIDFormat(this.id) !== null && ['', 'fb2p', 'b2doc'].includes(this.process); + return matchIDFormat(this.id) && ['', 'fb2p', 'b2doc'].includes(this.process); } async fetch() {