Skip to content

Add isTwitterHandle validator#2596

Closed
dollaransh17 wants to merge 1 commit intovalidatorjs:masterfrom
dollaransh17:add-twitter-handle-validator
Closed

Add isTwitterHandle validator#2596
dollaransh17 wants to merge 1 commit intovalidatorjs:masterfrom
dollaransh17:add-twitter-handle-validator

Conversation

@dollaransh17
Copy link
Copy Markdown

  • Add new validator for Twitter handles (@username format)
  • Accepts handles with or without @ symbol
  • 1-15 characters, letters, numbers, and underscores only
  • Add comprehensive test cases covering valid/invalid scenarios
  • Update README.md documentation
  • Export validator in main index

Fixes validation for Twitter usernames/handles for Hacktoberfest contribution.

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

- Add new validator for Twitter handles (@username format)
- Accepts handles with or without @ symbol
- 1-15 characters, letters, numbers, and underscores only
- Add comprehensive test cases covering valid/invalid scenarios
- Update README.md documentation
- Export validator in main index

Fixes validation for Twitter usernames/handles for Hacktoberfest contribution.
@WikiRik
Copy link
Copy Markdown
Member

WikiRik commented Oct 1, 2025

I think that this is too specific and not used enough to add to this library. Twitter is also not called Twitter anymore officially. People can just use the RegExp itself instead of using the validator library

@WikiRik WikiRik closed this Oct 1, 2025
@dollaransh17 dollaransh17 deleted the add-twitter-handle-validator branch October 2, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants