Skip to content

webui - Create A New Repository declares repo ID should be atleast 2 chars but does not allow less than 3 #2967

Closed

Description

@itaidavid

image

The regex at webui/src/lib/components/repositoryCreateForm.jsx, line 18 actually requires 3-63 chars
const repoValidityRegex = /^[a-z0-9][a-z0-9-]{2,62}$/;
while the warning at line 77 states Min 2 characters

Should fix either one

Activity

  1. added
    area/UI
    on Feb 24, 2022
  2. codeaucafe commented on Mar 28, 2022

    @codeaucafe
    Contributor

    Hello, not sure if this is assigned to anyone yet, but this seems like a simple enough fix that I can do in my limited spare time this week. Is that fine if I take ownership of this issue?

    Thanks in advance

    Best,
    david

  3. itaidavid commented on Mar 28, 2022

    @itaidavid
    ContributorAuthor

    Hello @DataDavD
    You are right and this issue is not assigned on anyone yet.
    Not only it is OK if you claim the ownership, it will be highly appreciated.
    Please feel free to contact me over this thread, or on our slack if you need any assitance

    Thank you 🙏

  4. codeaucafe commented on Mar 28, 2022

    @codeaucafe
    Contributor

    @Itai-David sounds good. I'll work on it this week. Thank you!

  5. added a commit that references this issue on Apr 4, 2022
    bd562b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/UIgood first issueteam/versioning-engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions