fix quoteEnd extract regex
This commit is contained in:
parent
fcba50f041
commit
f5ad51a35e
|
@ -252,7 +252,7 @@ function tryWrapHtmlCode(text: string) {
|
|||
},
|
||||
)
|
||||
.replace(
|
||||
/(<\/body>)([\r\n\s]*?)(<\/html>)([\n\r]*?)([`]*?)([\n\r]*?)/g,
|
||||
/(<\/body>)([\r\n\s]*?)(<\/html>)([\n\r]*)([`]*)([\n\r]*?)/g,
|
||||
(match, bodyEnd, space, htmlEnd, newLine, quoteEnd) => {
|
||||
return !quoteEnd ? bodyEnd + space + htmlEnd + "\n```\n" : match;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue