Skip to content

Commit

Permalink
Fix #131: Regex correction for table name (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadasjad authored Sep 9, 2024
1 parent 0edd970 commit ca67155
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: '/^(?:[a-z][a-z0-9]*)(?:\\\\[a-z][a-z0-9]*)*$/i',
pattern: '/^[a-z_][a-z0-9_]*$/i',
message: 'Invalid table name'
)]
#[TableExistsRule]
Expand Down

0 comments on commit ca67155

Please sign in to comment.