mirror of
https://github.com/WolframResearch/WolframLanguageForJupyter.git
synced 2025-04-16 11:46:05 +00:00
Merge pull request #102 from WolframResearch/bugfix/fix-message-frame-parsing-issue
Fix issue regarding message frame parsing
This commit is contained in:
commit
a222be43cc
@ -63,11 +63,11 @@ If[
|
||||
(* see https://jupyter-client.readthedocs.io/en/stable/messaging.html *)
|
||||
StringCases[
|
||||
frameStr,
|
||||
ident1___ ~~ "<IDS|MSG>" ~~ ___ ~~
|
||||
"{" ~~ json2___ ~~ "}" ~~
|
||||
"{" ~~ json3___ ~~ "}" ~~
|
||||
"{" ~~ json4___ ~~ "}" ~~
|
||||
"{" ~~ json5___ ~~ "}" ~~
|
||||
Shortest[ident1___] ~~ "<IDS|MSG>" ~~ Shortest[___] ~~
|
||||
"{" ~~ Shortest[json2___] ~~ "}" ~~
|
||||
"{" ~~ Shortest[json3___] ~~ "}" ~~
|
||||
"{" ~~ Shortest[json4___] ~~ "}" ~~
|
||||
"{" ~~ Shortest[json5___] ~~ "}" ~~
|
||||
EndOfString :>
|
||||
Prepend[
|
||||
(* add back in the brackets *)
|
||||
|
Loading…
x
Reference in New Issue
Block a user