Allow pa codes to be 3 or 4 digits in length

This commit is contained in:
Björn Fromme
2019-07-23 15:38:14 +02:00
parent 7916e5f2e2
commit 11fc0f4c5b
2 changed files with 2 additions and 2 deletions
@@ -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{3,4}';
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{