diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 12:34:02 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 12:34:02 -0400 |
| commit | a074b625e3c765ac62cb4240d5c8d1d35152f8f4 (patch) | |
| tree | 1d46fdcdbf82e87e2b513511251e8da18baf03d6 /pkg_resources | |
| parent | a54a764326d516950861d2d317150e7e172bd99f (diff) | |
| download | python-setuptools-git-a074b625e3c765ac62cb4240d5c8d1d35152f8f4.tar.gz | |
Update EGG_NAME regular expression matcher to allow names to include dashes. Fixes failing test and fixes #307.
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index c3686f88..4cdb40dc 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2267,8 +2267,8 @@ OBRACKET = re.compile(r"\s*\[").match CBRACKET = re.compile(r"\s*\]").match MODULE = re.compile(r"\w+(\.\w+)*$").match EGG_NAME = re.compile( - r"(?P<name>[^-]+)" - r"( -(?P<ver>[^-]+) (-py(?P<pyver>[^-]+) (-(?P<plat>.+))? )? )?", + r"(?P<name>.*?)" + r"( -(?P<ver>[^-]+) (-py(?P<pyver>[^-]+) (-(?P<plat>.+))? )? )?$", re.VERBOSE | re.IGNORECASE ).match |
