mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
feat: add picture mode
This commit is contained in:
parent
6f0e62b54d
commit
70044eb6c0
21 changed files with 663 additions and 371 deletions
9
utils/text.js
Normal file
9
utils/text.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
/**
|
||||
* 判断一段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