Skip to content

Allow app names to end with numbers #3345

@ywwa

Description

@ywwa

What problem will this feature address?

Currently when creating new application and entering app name that ends with numbers, for example: postgres-18 validation blocks this name because of following regex

appName: z
.string()
.min(1, {
message: "App name is required",
})
.regex(/^[a-z](?!.*--)([a-z0-9-]*[a-z])?$/, {
message:
"App name supports lowercase letters, numbers, '-' and can only start and end letters, and does not support continuous '-'",
}),

Describe the solution you'd like

Expanding validation regex to allow ending with numbers

Describe alternatives you've considered

Additional context

No response

Will you send a PR to implement it?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions