From 6e8829158d510724e1cd50c11eaf1350e04db99b Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Mon, 30 Sep 2024 15:09:04 +0300 Subject: [PATCH] Fix table name validation pattern (#139) --- 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 93d6d3ec..0c48c675 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\-.]+$/i', message: 'Invalid table name' )] #[TableExistsRule]