mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
去除突破关键字匹配
This commit is contained in:
parent
42ad333b9c
commit
50faef4e65
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user