From e8af3ca8b68e1d79dc11e6573662bc8bbce0ad04 Mon Sep 17 00:00:00 2001 From: Xing Ling Date: Thu, 2 Nov 2023 15:01:45 -0400 Subject: [PATCH] Prettier --- src/MIParser.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/MIParser.ts b/src/MIParser.ts index bbab365f..eaa0dffa 100644 --- a/src/MIParser.ts +++ b/src/MIParser.ts @@ -177,7 +177,8 @@ export class MIParser { const result: any = {}; if (c === '{') { c = this.next(); - if (c !== '"') { // oject contains name-value pairs + if (c !== '"') { + // oject contains name-value pairs while (c !== '}') { if (c !== ',') { this.back(); @@ -188,11 +189,12 @@ export class MIParser { } c = this.next(); } - } else { // "object" contains just values + } else { + // "object" contains just values c = this.next(); let key = 0; while (c !== '}') { - let value = ""; + let value = ''; while (c !== '"') { value += c; c = this.next();