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

20 lines
408 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")) {
reg = /(#\*)?(.*)图鉴/;
}
if (!reg.test(e.msg)) {
return false;
}
return await AtlasAlias(e,{render})
}