mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5767] fix: name username input validation #5339
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5339
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5767
Author: @Saqibaqeel
Created: 1/12/2026
Status: 🔄 Open
Base:
main← Head:fix/username-validation📝 Commits (1)
96bdb8dfix: name username input validation📊 Changes
1 file changed (+9 additions, -8 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/collections/EditRequest.vue(+9 -8)📄 Description
Closes #
This PR adds proper validation for usernames in the request modal. It ensures that only valid characters are allowed and prevents users from submitting invalid names.
What's changed
Added a regex for username validation:
Shows a toast error message if the username is invalid
Prevents form submission when the username does not meet the criteria
Username input now validated
Toast error implemented for invalid usernames
Submission blocked on invalid input
Notes to reviewers
/^[a-zA-Z0-9_-]{1,50}$/Summary by cubic
Adds strict validation to the Request Name field in Edit Request. Trims input, blocks invalid names, and shows an error toast.
Written for commit
96bdb8d985. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.