We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e42d24 commit d53efd3Copy full SHA for d53efd3
src/js.cookie.js
@@ -73,9 +73,9 @@
73
value = converter.write(value, key);
74
}
75
76
- key = encodeURIComponent(String(key));
77
- key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
78
- key = key.replace(/[\(\)]/g, escape);
+ key = encodeURIComponent(String(key))
+ .replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
+ .replace(/[\(\)]/g, escape);
79
80
var stringifiedAttributes = '';
81
for (var attributeName in attributes) {
0 commit comments