From 1c864d1b7da94e551282ff6ea63e5fcc0e096f20 Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Fri, 15 Nov 2024 13:57:01 -0500 Subject: [PATCH] Avoid `RegularExpression::maxrec` by using `StringFormatQ["...", "XML"]` instead of pattern matching --- Source/Chatbook/SendChat.wl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Chatbook/SendChat.wl b/Source/Chatbook/SendChat.wl index cd3a90bf..65bda248 100644 --- a/Source/Chatbook/SendChat.wl +++ b/Source/Chatbook/SendChat.wl @@ -1098,7 +1098,7 @@ extractBodyData // endDefinition; parseXMLResponse // beginDefinition; parseXMLResponse[ response_String ] := - If[ StringContainsQ[ response, "<" ~~ __ ~~ ">" ~~ ___ ~~ "" ], + If[ StringFormatQ[ response, "XML" ], parseXMLResponse[ Quiet @ ImportString[ response, "XML" ] ], $Failed ];