Skip to content

Trim the input strings automatically to prevent [invalid_input] error #6231

Description

@DereC4

Please confirm the following.

What parts of Modrinth is your feature request related too?

Modrinth.com website

Is your suggested feature related to a problem? Please describe.

Image

Submitting files with spaces in the text fields leads to

Could not create project version

ModrinthServerError: [invalid_input] Error while validating input: Field version_number failed validation with error: regex

Describe the solution you'd like

Wondering if we could have Modrinth automatically trim the string, seems like a simple fix.

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions