Skip to content

Commit 228bf8e

Browse files
committed
Reverse the computed value and the explanation
#268 (comment)
1 parent 4e65517 commit 228bf8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ var interpretNumericEntities = function (str) {
3030
// the form is iso-8859-1, or when the submitted form has an accept-charset
3131
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
3232
// the ✓ character, such as us-ascii.
33-
var isoSentinel = 'utf8=' + encodeURIComponent('✓'); // %26%2310003%3B
33+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
3434

3535
// These are the percent-encoded utf-8 octets representing a checkmark, indicating
3636
// that the request actually is utf-8 encoded.
37-
var utf8Sentinel = 'utf8=' + encodeURIComponent('✓'); // %E2%9C%93
37+
var utf8Sentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
3838

3939
var parseValues = function parseQueryStringValues(str, options) {
4040
var obj = {};

0 commit comments

Comments
 (0)