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 7, 2024
1 parent 0ecf9bd commit 20eab92
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,6 @@ export function parse(
if (!__hasOwnProperty.call(obj, key)) {
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 val = str.slice(valStartIdx, valEndIdx);
obj[key] = tryDecode(val, dec);
}
Expand Down

0 comments on commit 20eab92

Please sign in to comment.