fix quoteEnd extract regex

This commit is contained in:
code-october 2024-09-29 14:29:42 +00:00
parent fcba50f041
commit f5ad51a35e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
},