2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

去除突破关键字匹配

This commit is contained in:
Ctrlcvs 2022-10-08 19:30:19 +08:00
parent 42ad333b9c
commit 50faef4e65

View File

@ -17,7 +17,7 @@ const _path = process.cwd();
const __dirname = path.resolve();
const list = ["wuqi_tujian", "shiwu_tujian", "yuanmo_tujian", "mijin_tujian", "shengyiwu_tujian", "daoju_tujian"]
const reglist = ["(#|专武|武器|图鉴|突破)", "(#|食物|特殊料理|特色|料理|食材|图鉴)", "(#|原魔|怪物|图鉴|信息)", "(#|秘境|信息|图鉴)", "(#|圣遗物|图鉴)",
const reglist = ["(#|专武|武器|图鉴)", "(#|食物|特殊料理|特色|料理|食材|图鉴)", "(#|原魔|怪物|图鉴|信息)", "(#|秘境|信息|图鉴)", "(#|圣遗物|图鉴)",
"(#|图鉴|道具)"
]
export async function AtlasAlias(e) {
@ -72,7 +72,7 @@ const filePath = async function(e) {
if(index!=data.length-1){
msg=e.msg.replace(new RegExp(reglist[index], "g"), "");
}else {
msg=e.msg.replace(/#||信息|图鉴|命座|天赋|突破/g, "");
msg=e.msg.replace(/#||信息|图鉴|命座|天赋/g, "");
}
let path = `${_path}/plugins/xiaoyao-cvs-plugin/resources/xiaoyao-plus/${val}/${msg}.png`
if (fs.existsSync(path)) {