mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
fix regex
This commit is contained in:
parent
6aaa27c024
commit
9ab90bd835
@ -101,7 +101,7 @@ def test_pep440_version():
|
||||
|
||||
|
||||
|
||||
pep440re = re.compile('^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d+)?$')
|
||||
pep440re = re.compile('^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d*)?$')
|
||||
|
||||
def raise_on_bad_version(version):
|
||||
if not pep440re.match(version):
|
||||
|
Loading…
Reference in New Issue
Block a user