Fix regex being too greedy

This commit is contained in:
Björn Fromme committed 2019-06-17 17:15:31 +02:00
1 parent 032cfeb4f7
commit 61f8b9213e
1 file changed
+1 -1
@@ -50,7 +50,7 @@ class TrackingMiddleware implements MiddlewareInterface
const COOKIE_NAME = 'ep_trk';
const COOKIE_TTL = 30;
const CODE_PATTERN = '([a-z]{4}|PA)\d{4}.*';
const CODE_PATTERN = '([a-z]{4}|PA)\d{4}';
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{