mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
feat: 暂时不使用chatgpt-api库,拷贝了部分其代码进行修改
This commit is contained in:
parent
b8bd3dfec9
commit
d0dcc50764
5 changed files with 1166 additions and 19 deletions
|
|
@ -1,9 +0,0 @@
|
|||
|
||||
/**
|
||||
* 判断一段markdown文档中是否包含代码
|
||||
* @param text
|
||||
*/
|
||||
export function codeExists (text = '') {
|
||||
let regex = /^[\s\S]*\$.*\$[\s\S]*/
|
||||
return regex.test(text)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue