Skip to content

Commit

Permalink
fix(regex): accepting numbers in name
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm authored Aug 17, 2024
1 parent 9cd4e9d commit 1339655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const minShaLength = 7
// cannot begin or end with a hyphen*.
//
// \* That is: until <https://github.com/remarkjs/remark-github/issues/13>.
const userGroup = '[\\da-z][-\\da-z]{0,38}'
const userGroup = '[\\da-z][-\\da-z0-9]{0,38}'
const projectGroup = '(?:\\.git[\\w-]|\\.(?!git)|[\\w-])+'
const repoGroup = '(' + userGroup + ')\\/(' + projectGroup + ')'

Expand Down

0 comments on commit 1339655

Please sign in to comment.