Skip to content

Commit

Permalink
Remove quote parsing from package
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Oct 8, 2024
1 parent 8f3ee9e commit 3357666
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,6 @@ export function parse(
let valStartIdx = startIndex(str, eqIdx + 1, endIdx);
let valEndIdx = endIndex(str, endIdx, valStartIdx);

if (
str.charCodeAt(valStartIdx) === 0x22 /* " */ &&
str.charCodeAt(valEndIdx - 1) === 0x22 /* " */
) {
valStartIdx++;
valEndIdx--;
}

const value = dec(str.slice(valStartIdx, valEndIdx));
obj[key] = value;
}
Expand Down

0 comments on commit 3357666

Please sign in to comment.