From ecfc3b9e2b911ad8ebd49600c4089aca30619f29 Mon Sep 17 00:00:00 2001 From: Vadim Kiryukhin Date: Wed, 22 Aug 2012 20:13:07 -0700 Subject: [PATCH] eliminate JSON-related regexp parsing; use native JSON instead. minor bug in xmlns fixed. --- vkbeautify.js | 78 +++++++++------------------------------------------ 1 file changed, 13 insertions(+), 65 deletions(-) diff --git a/vkbeautify.js b/vkbeautify.js index f0784e2..13cee3a 100644 --- a/vkbeautify.js +++ b/vkbeautify.js @@ -1,7 +1,7 @@ /** * vkBeautify - javascript plugin to pretty-print or minify text in XML, JSON, CSS and SQL formats. * -* Version - 0.98.01.beta +* Version - 0.99.00.beta * Copyright (c) 2012 Vadim Kiryukhin * vkiryukhin @ gmail.com * http://www.eslinstructor.net/vkbeautify/ @@ -86,8 +86,8 @@ vkbeautify.prototype.xml = function(text,step) { var ar = text.replace(/>\s{0,}<") .replace(/