You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc538ab
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(cli): hoist gen name validators to module constants
The name-validation regexes in the gen arg parsers were inline literals,
recreating a RegExp on every parser call and duplicating two identical
patterns across five sites. Hoist them to two module-level constants
(NAME_RE for model/migration, NAME_WITH_HYPHENS_RE for middleware/cron/
queue). Behavior is unchanged (anchored, non-global validators).
0 commit comments