Fix empty json after minify

https://github.com/getify/JSON.minify/issues/16
This commit is contained in:
Mrn Om
2020-05-21 16:19:32 +03:00
committed by Igor Malinovskiy
parent 68d1b5f91b
commit 3bc1968be9
@@ -104,6 +104,8 @@ var minify = function(json) {
tokenizer.lastIndex = 0;
json = json.concat("\n");
while (tmp = tokenizer.exec(json)) {
lc = RegExp.leftContext;
rc = RegExp.rightContext;