aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/euscan/helpers.py')
-rw-r--r--pym/euscan/helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/euscan/helpers.py b/pym/euscan/helpers.py
index 6582393..ec721b7 100644
--- a/pym/euscan/helpers.py
+++ b/pym/euscan/helpers.py
@@ -30,8 +30,8 @@ VERSION_CMP_PACKAGE_QUIRKS = {
'sys-process/htop': htop_vercmp
}
-_v_end = '((-|_)(pre|p|beta|b|alpha|a|rc|r)\d*)'
-_v = r'((\d+)((\.\d+)*)([a-zA-Z]*?)(' + _v_end + '*))'
+_v_end = r'(?:(?:-|_)(?:pre|p|beta|b|alpha|a|rc|r)\d*)'
+_v = r'((?:\d+)(?:(?:\.\d+)*)(?:[a-zA-Z]*?)(?:' + _v_end + '*))'
# Stolen from g-pypi