Skip to content

Commit

Permalink
fix: Updated GH username matcher to ignore query params
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Apr 26, 2023
1 parent 4aa584c commit 6751fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/urlMatchers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const getGithubUsername = (url: string) => {
const match = url.match(/github\.com\/([^/]+)/);
const match = url.match(/github\.com\/([\w.-]+)/);
return match && match[1];
};

Expand Down

0 comments on commit 6751fa5

Please sign in to comment.