1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

feat: modified the regex

This commit is contained in:
Christy Jacob 2020-12-30 00:38:48 +05:30
parent 51600bc1d9
commit cebd016282

View file

@ -26,7 +26,7 @@ Config::setParam('cookieSamesite', Response::COOKIE_SAMESITE_NONE);
function mapResponseFormatToClass(string $responseFormat): Filter {
switch($responseFormat) {
case preg_match($responseFormat, "/0\.[0-6]\.\d/"):
case preg_match($responseFormat, "/0\.[0-6]\.\d?/"):
return new V06();
default:
return null;