extract \n from FIM

This commit is contained in:
Andrew Pareles 2025-04-17 22:30:40 -07:00
parent 97c611f4f2
commit 7d3ce48f5f

View file

@ -153,6 +153,7 @@ export const extractCodeFromFIM = ({ text, recentlyAddedTextLen, midTag, }: { te
const foundMid = pm.removePrefix(`<${midTag}>`)
if (foundMid) {
pm.removeSuffix(`\n`) // sometimes outputs \n
pm.removeSuffix(`</${midTag}>`)
}
const s = pm.value()