This commit is contained in:
Neeraj Gupta 2024-05-21 14:42:51 +05:30
parent 2abc57f981
commit 7a5d4cedf6

View file

@ -74,6 +74,7 @@ class CodeDisplay {
.severe("Could not parse code display from json", e, s);
// (ng/prateek) Handle the case where we have fragment in the rawDataUrl
if (!json.endsWith("}") && json.contains("}#")) {
Logger("CodeDisplay").warning("ignoring code display as it's invalid");
return CodeDisplay();
}
if (safeParsing) {