diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index 38c6046..9965431 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -1,8 +1,8 @@ // ==UserScript== -// @lastmodified 202112052149 +// @lastmodified 202112052219 // @name Torn翻译 // @namespace WOOH -// @version 0.1.1205a +// @version 0.1.1205b // @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;