Skip to content

Commit 0875b1c

Browse files
radarhereFagnerMartinsBrack
authored andcommitted
Fixed typos in the code for the SERVER_SIDE.md docs
Closes js-cookiegh-408
1 parent e56c990 commit 0875b1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SERVER_SIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var PHPCookies = Cookies.withConverter({
3232
write: function (value) {
3333
// Encode all characters according to the "encodeURIComponent" spec
3434
return encodeURIComponent(value)
35-
// Revert the characters that are unnecessarly encoded but are
35+
// Revert the characters that are unnecessarily encoded but are
3636
// allowed in a cookie value, except for the plus sign (%2B)
3737
.replace(/%(23|24|26|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
3838
},
@@ -62,7 +62,7 @@ var TomcatCookies = Cookies.withConverter({
6262
write: function (value) {
6363
// Encode all characters according to the "encodeURIComponent" spec
6464
return encodeURIComponent(value)
65-
// Revert the characters that are unnecessarly encoded but are
65+
// Revert the characters that are unnecessarily encoded but are
6666
// allowed in a cookie value
6767
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent)
6868
// Encode the parens that are interpreted incorrectly by Tomcat
@@ -95,7 +95,7 @@ var JBossCookies = Cookies.withConverter({
9595
write: function (value) {
9696
// Encode all characters according to the "encodeURIComponent" spec
9797
return encodeURIComponent(value)
98-
// Revert the characters that are unnecessarly encoded but are
98+
// Revert the characters that are unnecessarily encoded but are
9999
// allowed in a cookie value
100100
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent)
101101
// Encode again the characters that are not allowed in JBoss 7.1.1, like "[" and "]":

0 commit comments

Comments
 (0)