Skip to content

Commit

Permalink
normalize gitconfig's author field to UTF-8 NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg-duarte committed Dec 15, 2023
1 parent f310a59 commit 26794eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/poetry/console/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,9 @@ def _format_requirements(self, requirements: list[dict[str, str]]) -> Requiremen

def _validate_author(self, author: str, default: str) -> str | None:
from poetry.core.packages.package import AUTHOR_REGEX
from poetry.core.utils.helpers import combine_unicode

author = author or default
author = combine_unicode(author or default)

if author in ["n", "no"]:
return None
Expand Down

0 comments on commit 26794eb

Please sign in to comment.