Skip to content

Commit

Permalink
Fix table name validation pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Sep 30, 2024
1 parent cce28a9 commit 84b677e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/ActiveRecord/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 84b677e

Please sign in to comment.