From a6c2194cdf3b6a35574526826a4053f650445e1b Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 7 Oct 2024 23:10:27 -0400 Subject: changed transferToFlashcard because questions were coming back in a format that didn't parse --- src/client/views/pdf/AnchorMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/views/pdf/AnchorMenu.tsx b/src/client/views/pdf/AnchorMenu.tsx index bff112017..633ec9bbb 100644 --- a/src/client/views/pdf/AnchorMenu.tsx +++ b/src/client/views/pdf/AnchorMenu.tsx @@ -142,7 +142,7 @@ export class AnchorMenu extends AntimodeMenu { transferToFlashcard = (text: string, x: number, y: number) => { // put each question generated by GPT on the front of the flashcard - const senArr = text.trim().split('Question: '); + const senArr = text.trim().split('Question:'); const collectionArr: Doc[] = []; for (let i = 1; i < senArr.length; i++) { const newDoc = Docs.Create.ComparisonDocument(senArr[i], { _layout_isFlashcard: true, _width: 300, _height: 300 }); -- cgit v1.2.3-70-g09d2