From 6fc85322cdbaddbf552c69b95958686e254832bd Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 10 May 2024 12:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=8B=E8=BF=99?= =?UTF-8?q?=E4=B8=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/md5/md5-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ica-rs/plugins/md5/md5-api.ts b/ica-rs/plugins/md5/md5-api.ts index 55f986b..6d3bc4a 100644 --- a/ica-rs/plugins/md5/md5-api.ts +++ b/ica-rs/plugins/md5/md5-api.ts @@ -64,7 +64,7 @@ type ScoreCallback = (run_round: number, score: number) => boolean; async function fight(names: string): Promise { // 检查一下输入是否合法 // 比如里面有没有 !test! - if (names.startsWith("!test!")) { + if (names.indexOf("!test!") !== -1) { throw new Error("你怎么在对战输入里加 !test!(恼)\n${names}"); } return await md5_module.fight(names);