Skip to content

Commit

Permalink
Add & to author name regex, resolve #3485 (#120)
Browse files Browse the repository at this point in the history
Useful for R&D departments :) 
python-poetry/poetry#3485
  • Loading branch information
ShayNehmad-RecoLabs committed Jan 25, 2021
1 parent 79bc4cb commit 0160212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poetry/core/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .utils.utils import create_nested_marker


AUTHOR_REGEX = re.compile(r"(?u)^(?P<name>[- .,\w\d'’\"()]+)(?: <(?P<email>.+?)>)?$")
AUTHOR_REGEX = re.compile(r"(?u)^(?P<name>[- .,\w\d'’\"()&]+)(?: <(?P<email>.+?)>)?$")


class Package(PackageSpecification):
Expand Down

0 comments on commit 0160212

Please sign in to comment.