feat: modified the regex
This commit is contained in:
parent
51600bc1d9
commit
cebd016282
|
@ -26,7 +26,7 @@ Config::setParam('cookieSamesite', Response::COOKIE_SAMESITE_NONE);
|
||||||
|
|
||||||
function mapResponseFormatToClass(string $responseFormat): Filter {
|
function mapResponseFormatToClass(string $responseFormat): Filter {
|
||||||
switch($responseFormat) {
|
switch($responseFormat) {
|
||||||
case preg_match($responseFormat, "/0\.[0-6]\.\d/"):
|
case preg_match($responseFormat, "/0\.[0-6]\.\d?/"):
|
||||||
return new V06();
|
return new V06();
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue