From ff5d46f7b67f0a3dbf4ee1096e6f28941be219bb Mon Sep 17 00:00:00 2001 From: uzdevid Date: Fri, 13 Dec 2024 18:46:44 +0500 Subject: [PATCH] Change regex pattern --- src/Rule/UuidHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rule/UuidHandler.php b/src/Rule/UuidHandler.php index ee42e41b..92553b8b 100644 --- a/src/Rule/UuidHandler.php +++ b/src/Rule/UuidHandler.php @@ -11,7 +11,7 @@ use Yiisoft\Validator\ValidationContext; class UuidHandler implements RuleHandlerInterface { - private const PATTERN = '\A[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\z'; + private const PATTERN = '/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i'; private const NIL = '00000000-0000-0000-0000-000000000000'; /**