extract \n from FIM

This commit is contained in:
Andrew Pareles
2025-04-18 03:48:44 -07:00
parent 78580a10b4
commit a210a2f57f
@@ -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()