summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/_version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/_version.py b/numpy/lib/_version.py
index d4098acb5..0f26d6503 100644
--- a/numpy/lib/_version.py
+++ b/numpy/lib/_version.py
@@ -54,7 +54,7 @@ class NumpyVersion():
def __init__(self, vstring):
self.vstring = vstring
- ver_main = re.match(r'\d[.]\d+[.]\d+', vstring)
+ ver_main = re.match(r'\d\.\d+\.\d+', vstring)
if not ver_main:
raise ValueError("Not a valid numpy version string")