From 45cc7007fa3af900bfa45107e8726d5cf9222665 Mon Sep 17 00:00:00 2001 From: Shay Nehmad <70973922+ShayNehmad-RecoLabs@users.noreply.github.com> Date: Sun, 27 Dec 2020 14:15:45 +0200 Subject: [PATCH] Add & to author name regex, resolve #3485 Useful for R&D departments :) https://github.com/python-poetry/poetry/issues/3485 --- poetry/core/packages/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry/core/packages/package.py b/poetry/core/packages/package.py index aac39afa7..c7c19669c 100644 --- a/poetry/core/packages/package.py +++ b/poetry/core/packages/package.py @@ -17,7 +17,7 @@ from .utils.utils import create_nested_marker -AUTHOR_REGEX = re.compile(r"(?u)^(?P[- .,\w\d'’\"()]+)(?: <(?P.+?)>)?$") +AUTHOR_REGEX = re.compile(r"(?u)^(?P[- .,\w\d'’\"()&]+)(?: <(?P.+?)>)?$") class Package(PackageSpecification):