From 70ca63d8b25877b97b53052ee64e61bf26606f38 Mon Sep 17 00:00:00 2001 From: woohoo Date: Sun, 5 Dec 2021 22:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torn-trans-zhcn.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index 9965431..303cf25 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -1,8 +1,8 @@ // ==UserScript== -// @lastmodified 202112052219 +// @lastmodified 202112052222 // @name Torn翻译 // @namespace WOOH -// @version 0.1.1205b +// @version 0.1.1205c // @description Torn UI翻译 // @author Woohoo-[2687093] sabrina_devil[2696209] // @match https://www.torn.com/* @@ -5681,7 +5681,7 @@ ${htmlCont}
* 任务助手 */ function getTaskHint(task_name) { - task_name = task_name.toLowerCase().replaceAll(' ', '_').replaceAll(/[,:]/, ''); + task_name = task_name.toLowerCase().replaceAll(' ', '_').replaceAll(',', ''); if (!missionDict._taskHint[task_name]) return '暂无,请联系开发者'; const task = missionDict._taskHint[task_name].task || null; const hint = missionDict._taskHint[task_name].hint || null;