Commit 2fc01d8
committed
Add isTwitterHandle validator
- 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.1 parent 6f436be commit 2fc01d8
File tree
4 files changed
+59
-0
lines changed- src
- lib
- test
4 files changed
+59
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| 253 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15911 | 15911 | | |
15912 | 15912 | | |
15913 | 15913 | | |
| 15914 | + | |
| 15915 | + | |
| 15916 | + | |
| 15917 | + | |
| 15918 | + | |
| 15919 | + | |
| 15920 | + | |
| 15921 | + | |
| 15922 | + | |
| 15923 | + | |
| 15924 | + | |
| 15925 | + | |
| 15926 | + | |
| 15927 | + | |
| 15928 | + | |
| 15929 | + | |
| 15930 | + | |
| 15931 | + | |
| 15932 | + | |
| 15933 | + | |
| 15934 | + | |
| 15935 | + | |
| 15936 | + | |
| 15937 | + | |
| 15938 | + | |
| 15939 | + | |
| 15940 | + | |
| 15941 | + | |
| 15942 | + | |
| 15943 | + | |
| 15944 | + | |
| 15945 | + | |
| 15946 | + | |
| 15947 | + | |
| 15948 | + | |
| 15949 | + | |
| 15950 | + | |
| 15951 | + | |
| 15952 | + | |
| 15953 | + | |
| 15954 | + | |
| 15955 | + | |
| 15956 | + | |
| 15957 | + | |
| 15958 | + | |
15914 | 15959 | | |
0 commit comments