diff --git a/lib/Gateway.ts b/lib/Gateway.ts index 4e79e47..78175f3 100644 --- a/lib/Gateway.ts +++ b/lib/Gateway.ts @@ -48,7 +48,7 @@ class GatewayClass { return null; let auth = null; run_regex ( - /(?:^|;)(?[^;=]+)=(?[^;]+)/gu, + /(?:^|;)\s*(?[^;=]+)=(?[^;]+)/gu, req.headers.cookie, (res: RegExpMatchArray) => { if (res.groups?.name === this._options.cookie_name)