Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
XingMicrochip committed Nov 2, 2023
1 parent 476e7b6 commit e8af3ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/MIParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit e8af3ca

Please sign in to comment.