From 411aba08fc9382d55d2d0cf80e0f30b211753b86 Mon Sep 17 00:00:00 2001 From: AHMAD ASJAD Date: Thu, 19 Sep 2024 12:00:51 +0530 Subject: [PATCH] Update src/Generator/ActiveRecord/Command.php Co-authored-by: Sergei Predvoditelev --- src/Generator/ActiveRecord/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/ActiveRecord/Command.php b/src/Generator/ActiveRecord/Command.php index a8d0d37d..93d6d3ec 100644 --- a/src/Generator/ActiveRecord/Command.php +++ b/src/Generator/ActiveRecord/Command.php @@ -24,7 +24,7 @@ public function __construct( private readonly string $namespace = 'App\\Model', #[Required] #[Regex( - pattern: '/^[\w-]+(?:\.[\w-]+)?$/i', + pattern: '/^[\w-]+\.?[\w-]*$/i', message: 'Invalid table name' )] #[TableExistsRule]