From 347c24ca4b08a18b849875d97ac8d5e77460070e Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Tue, 3 Dec 2024 14:38:37 -0500 Subject: [PATCH 1/2] Bugfix: Handle Windows line endings when reading text resources --- Source/Chatbook/Common.wl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/Chatbook/Common.wl b/Source/Chatbook/Common.wl index ce5624b9..af09bf12 100644 --- a/Source/Chatbook/Common.wl +++ b/Source/Chatbook/Common.wl @@ -1391,8 +1391,15 @@ getCloudChatbookExpressions[ ] := Enclose[ First[ StringCases[ string, - Shortest[ "@@resource ChatbookExpressions\n{" ~~ exprs__ ~~ "}\n@|" ] :> - Association @ ToExpression[ "{" <> exprs <> "}" ], + Shortest @ StringExpression[ + "@@resource ChatbookExpressions", + WhitespaceCharacter..., + "{", + exprs__, + "}", + WhitespaceCharacter..., + "@|" + ] :> Association @ ToExpression[ "{" <> exprs <> "}" ], 1 ], $Failed From 86da847c8657b301dcde673b5cb0f74ca6ce7535 Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Tue, 3 Dec 2024 14:39:14 -0500 Subject: [PATCH 2/2] Increment paclet version --- PacletInfo.wl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PacletInfo.wl b/PacletInfo.wl index ad53099a..5caaed09 100644 --- a/PacletInfo.wl +++ b/PacletInfo.wl @@ -1,7 +1,7 @@ PacletObject[ <| "Name" -> "Wolfram/Chatbook", "PublisherID" -> "Wolfram", - "Version" -> "1.5.2.17", + "Version" -> "1.5.2.18", "WolframVersion" -> "14.1+", "Description" -> "Wolfram Notebooks + LLMs", "License" -> "MIT",