mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 01:26:23 +01:00
- fixed typo in regex
This commit is contained in:
parent
bddcf82e5e
commit
a7abbb37cd
@ -235,8 +235,8 @@ class RpmQuery(packagequery.PackageQuery):
|
|||||||
res = 0
|
res = 0
|
||||||
while res == 0:
|
while res == 0:
|
||||||
# remove all leading non alphanumeric chars
|
# remove all leading non alphanumeric chars
|
||||||
ver1 = re.sub('^[^a-zA-z0-9]*', '', ver1)
|
ver1 = re.sub('^[^a-zA-Z0-9]*', '', ver1)
|
||||||
ver2 = re.sub('^[^a-zA-z0-9]*', '', ver2)
|
ver2 = re.sub('^[^a-zA-Z0-9]*', '', ver2)
|
||||||
if not (len(ver1) and len(ver2)):
|
if not (len(ver1) and len(ver2)):
|
||||||
break
|
break
|
||||||
# check if we have a digits segment
|
# check if we have a digits segment
|
||||||
|
Loading…
Reference in New Issue
Block a user