aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index da6cf8cd..f5b322b0 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -6,7 +6,7 @@ from distutils import log
from distutils.errors import DistutilsError
from md5 import md5
-EGG_FRAGMENT = re.compile('^egg=(\\w+(-\\w+)?)$')
+EGG_FRAGMENT = re.compile(r'^egg=([-A-Za-z0-9_.]+)$')
HREF = re.compile("""href\\s*=\\s*['"]?([^'"> ]+)""", re.I)
# this is here to fix emacs' cruddy broken syntax highlighting