Skip to content

Commit cf5de02

Browse files
committed
表の罫線が水平線とみなされるのを修正
1 parent 8eea9b5 commit cf5de02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/actions/chatActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ export async function askAI(params: ChatParams): Promise<ChatResult> {
165165
if (!text) {
166166
throw new Error("AIからの応答が空でした");
167167
}
168-
let targetSectionId = text.split(/-{3,}/)[0].trim() as SectionId;
168+
let targetSectionId = text.split(/\n-{3,}\n/)[0].trim() as SectionId;
169169
if (!targetSectionId) {
170170
targetSectionId = introSectionId(path);
171171
}
172-
const responseMessage = text.split(/-{3,}/)[1].trim();
172+
const responseMessage = text.split(/\n-{3,}\n/)[1].trim();
173173
const newChat = await addChat(path, targetSectionId, [
174174
{ role: "user", content: userQuestion },
175175
{ role: "ai", content: responseMessage },

0 commit comments

Comments
 (0)