🐞 fix: 修正正则错误

This commit is contained in:
zhiyu1998 2023-04-15 00:59:15 +08:00
parent e075b86d18
commit 586e8771a7

View File

@ -1,10 +1,10 @@
// 主库 // 主库
import fetch from "node-fetch"; import fetch from "node-fetch";
import fs from "node:fs";
// 爬虫库 // 爬虫库
import puppeteer from "../../../lib/puppeteer/puppeteer.js"; import puppeteer from "../../../lib/puppeteer/puppeteer.js";
// http库 // http库
import axios from "axios"; import axios from "axios";
import fs from "node:fs";
// 常量 // 常量
import { CAT_LIMIT } from "../utils/constant.js"; import { CAT_LIMIT } from "../utils/constant.js";
// 书库 // 书库
@ -46,11 +46,11 @@ export class query extends plugin {
fnc: "youthLearning", fnc: "youthLearning",
}, },
{ {
reg: "^#搜书(.*)$$", reg: "^#搜书(.*)$",
fnc: "searchBook", fnc: "searchBook",
}, },
{ {
reg: "^#bookid(.*)$$", reg: "^#bookid(.*)$",
fnc: "searchBookById", fnc: "searchBookById",
}, },
{ {