From 3863a0b367f26fe85d45144554b69ff984b152b4 Mon Sep 17 00:00:00 2001 From: Jyothi Babu Araja Date: Sun, 16 Apr 2017 13:15:30 +0530 Subject: [PATCH] fix for looping --- js/converter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/converter.js b/js/converter.js index 4cd955c..2f1e2bd 100644 --- a/js/converter.js +++ b/js/converter.js @@ -19,7 +19,7 @@ StylesConverter.prototype.toJSON = function (text) { } var output = {}, lastKey, term, style, _this = this; try { - text.split("{").every(function (item) { + text.split("{").forEach(function (item) { term = item.trim(); if (term) { if (term.indexOf("}") === -1) {