From 944b37e357de29e2bbe5ab5db6b7d4aef1e96aa3 Mon Sep 17 00:00:00 2001 From: Uriel Gomez Date: Thu, 18 Jan 2024 23:02:51 -0600 Subject: [PATCH] * xover.json.toXML - bugs fixed --- xo.js | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 107 insertions(+), 3 deletions(-) diff --git a/xo.js b/xo.js index de4108e..1cb404c 100644 --- a/xo.js +++ b/xo.js @@ -6506,12 +6506,116 @@ xover.json.toXML = function (json) { , ']', '') , '{', '') , '}', '') - , '\\s', '', 1) - , '"([^"]+?)"\\:', '$1', 1) + , '"([^"]+?)"\\:\\s*', '$1', 1) + , '\\s', '', 1) , '([^<]+)', '$1', 1) ); - let reformated_xson = raw_xson.transform(xover.xml.createDocument(`olsc{[ ,}] \`)); + let reformated_xson = raw_xson.transform(xover.xml.createDocument(` + olsc + {[ , + }] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \n + + + + + + + + + + \\ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +`)); let xson = reformated_xson.transform(xover.xml.createDocument(`xson:arraytruebooleannumericstringxson:arrayxson:object`));