Merge pull request #102 from WolframResearch/bugfix/fix-message-frame-parsing-issue

Fix issue regarding message frame parsing
This commit is contained in:
cc-wr 2020-12-15 12:18:06 -05:00 committed by GitHub
commit a222be43cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 *)