MCPcopy Index your code
hub / github.com/refined-github/refined-github / parseUserFromEmail

Function parseUserFromEmail

source/helpers/clean-commit-message.ts:1–3  ·  view source on GitHub ↗
(author: string)

Source from the content-addressed store, hash-verified

1function parseUserFromEmail(author: string): string | undefined {
2 return /<(?:\d+\+)?(?<username>[^<>@]+)@users\.noreply\.github\.com>/i.exec(author)?.groups?.username;
3}
4
5export default function cleanCommitMessage(
6 message: string,

Callers 1

cleanCommitMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected