Skip to content

[make:entity] Entity Names Should Be Allowed to Have Digits (i.e. v1) #1556

@jakeschroeder-fountaindigital

Description

Steps to reproduce:

  • Use make:entity with a namespaced classname that includes a digit (i.e., Foo\v1\Bar)
  • Observe ASCII error

return preg_match('/^[a-zA-Z\\\\]+$/', $entityName);

Replace regex in line 832
Old = ^[a-zA-Z\\\\]+$
New = ^[a-zA-Z\\\d]+$

Removes duplicated \ (escaped "") and adds digit as allowable character.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions