Skip to content

Commit

Permalink
Issue 96 is resolved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sundraiz-Shah committed Aug 26, 2024
1 parent 5ca42ac commit 4a1dff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ meta_tool/__pycache__/__init__.cpython-310.pyc
meta_tool/__pycache__/settings.cpython-310.pyc
meta_tool/__pycache__/urls.cpython-310.pyc
meta_tool/__pycache__/wsgi.cpython-310.pyc
myenv/
__pycache__/
3 changes: 2 additions & 1 deletion meta_creator/github_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def get_contributors_from_repo(owner, repo, token, url):
contributor_name = commit["commit"]["author"]["name"]
contributor_email = commit["commit"]["author"]["email"]
if contributor_name not in seen_names:
name_parts = contributor_name.split()
cleaned_name = re.sub(r'[^a-zA-Z\s]', '', contributor_name)
name_parts = cleaned_name.split()
given_name = name_parts[0]
# Combine the rest of the name parts as the family name
family_name = ' '.join(name_parts[1:])
Expand Down

0 comments on commit 4a1dff5

Please sign in to comment.