1. PyPA
  2. Python Packaging Authority Projects
  3. distlib

Commits

Vinay Sajip  committed 22c3856

Relaxed regexp used by split_filename.

  • Participants
  • Parent commits 8a1f82c
  • Branches default

Comments (0)

Files changed (1)

File distlib/util.py

View file
     return result
 
 PROJECT_NAME_AND_VERSION = re.compile('([a-z0-9_]+([.-][a-z_][a-z0-9_]*)*)-'
-                                      '([0-9][a-z0-9_.+-]*)', re.I)
+                                      '([a-z0-9_.+-]+)', re.I)
 PYTHON_VERSION = re.compile(r'-py(\d\.?\d?)')