Skip to content

Commit 2b6e049

Browse files
kushthedudeabhinavk96
authored andcommitted
fix: Update GitHub URL Validator (#3326)
* Update GitHub Validator * Update GitHub Validator
1 parent 85cb5a3 commit 2b6e049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/validators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const validFacebookProfileUrlPattern = new RegExp(
6565

6666
export const validGithubProfileUrlPattern = new RegExp(
6767
'^(https?:\\/\\/)' // compulsory protocol
68-
+ '?(?:www.)?github\\.com\\/([a-zA-Z0-9_]+)$'
68+
+ '?(?:www.)?github\\.com\\/([a-zA-Z0-9_]+)([-]?)([a-zA-Z0-9_]+)$'
6969
);
7070

7171
export const validLinkedinProfileUrlPattern = new RegExp(

0 commit comments

Comments
 (0)