@@ -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