tough-cookie 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/cookie.js +2 -2
  2. package/package.json +1 -1
package/lib/cookie.js CHANGED
@@ -58,11 +58,11 @@ var CONTROL_CHARS = /[\x00-\x1F]/;
58
58
  // (see: https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/parsed_cookie.cc#L60)
59
59
  // '=' and ';' are attribute/values separators
60
60
  // (see: https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/parsed_cookie.cc#L64)
61
- var COOKIE_PAIR = /^(([^=;]+))\s*=\s*(("?)[^\n\r\0]*\3)/
61
+ var COOKIE_PAIR = /^(([^=;]+))\s*=\s*([^\n\r\0]*)/;
62
62
 
63
63
  // Used to parse non-RFC-compliant cookies like '=abc' when given the `loose`
64
64
  // option in Cookie.parse:
65
- var LOOSE_COOKIE_PAIR = /^((?:=)?([^=;]*)\s*=\s*)?(("?)[^\n\r\0]*\3)/;
65
+ var LOOSE_COOKIE_PAIR = /^((?:=)?([^=;]*)\s*=\s*)?([^\n\r\0]*)/;
66
66
 
67
67
  // RFC6265 S4.1.1 defines path value as 'any CHAR except CTLs or ";"'
68
68
  // Note ';' is \x3B
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "RFC6265",
44
44
  "RFC2965"
45
45
  ],
46
- "version": "2.2.1",
46
+ "version": "2.2.2",
47
47
  "homepage": "https://github.com/SalesforceEng/tough-cookie",
48
48
  "repository": {
49
49
  "type": "git",