Skip to content

Commit 4a0758d

Browse files
committed
Fix unnecessary escape
1 parent 721b504 commit 4a0758d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ exports.querystringStringify = function (obj) {
5656
var saved = querystring.escape
5757
querystring.escape = escape // global
5858
var ret = querystring.stringify(obj)
59-
ret = ret.replace(/[\@\*\/\+]/g, function (char) {
59+
ret = ret.replace(/[@\*\/\+]/g, function (char) {
6060
// `escape` doesn't encode the characters @*/+ so we do it manually
6161
return '%' + char.charCodeAt(0).toString(16).toUpperCase()
6262
})

0 commit comments

Comments
 (0)