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

20 lines
409 B
JavaScript
Raw Normal View History

2023-06-06 12:41:02 +08:00
import {
Cfg
} from "../components/index.js";
import {AtlasAlias} from '../model/srGallery.js'
export async function srAtlasAlias(e,{render}) {
if (!Cfg.get("sr.Search")) {
return false;
}
let reg = /(#|\*)(.*)/;
if (Cfg.get("sr.Atlas")) {
2023-06-06 22:42:35 +08:00
reg = /(#|\*)?(.*)图鉴/;
2023-06-06 12:41:02 +08:00
}
if (!reg.test(e.msg)) {
return false;
}
return await AtlasAlias(e,{render})
}