[arch] refactoring: removing unneeded module

This commit is contained in:
Vinicius Moreira
2021-06-17 17:46:13 -03:00
parent 37ec3d96f4
commit 6e2a4222c8
2 changed files with 0 additions and 39 deletions

View File

@@ -1,12 +0,0 @@
import re
RE_STRIP_EPIC = re.compile(r'^\d+:')
RE_STRIP_RELEASE = re.compile(r'-[\d.?]+$')
def clean_version(version: str) -> str:
treated_version = version.strip()
if treated_version:
return RE_STRIP_RELEASE.split(RE_STRIP_EPIC.split(treated_version)[-1])[0]
return treated_version