Skip to content

Commit

Permalink
fix(author-search): 🐛 contributor stripping wasn't working properly. F…
Browse files Browse the repository at this point in the history
…ixes #23
  • Loading branch information
djdembeck committed Oct 15, 2021
1 parent c146ee4 commit 72f464e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Contents/Code/search_tools.py
Expand Up @@ -269,7 +269,7 @@ def cleanup_author_name(self, name):
def clear_contributor_text(self, string):
contributor_regex = '.+?(?= -)'
if re.match(contributor_regex, string):
return re.match(contributor_regex, string)
return re.match(contributor_regex, string).group(0)
return string

def parse_api_response(self, api_response):
Expand Down

0 comments on commit 72f464e

Please sign in to comment.