Skip to content

Commit 4c5b15a

Browse files
committed
fix: handle reset states
1 parent 3543e12 commit 4c5b15a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/parse.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ function parse(input) {
5656
}
5757

5858
// Reset reading key value pairs
59+
key = "";
60+
value = "";
5961
separatorIndex = i + 1;
6062
equalityIndex = i + 1;
6163
shouldEncode = false;
64+
hasPlus = false;
6265
}
6366
// Check '='
6467
else if (c === 61) {

0 commit comments

Comments
 (0)