Commit 07a81fde authored by Seblu's avatar Seblu
Browse files

Fix regex_exclude require whole line to be matched

Use re.search instead of re.match
parent 9852808e
......@@ -219,7 +219,7 @@ class VersionController(object):
regex_exclude = value.get("regex_exclude", ".*(rc|beta|alpha).*")
if regex_exclude != "":
logging.debug("Exclusion regex: %s" % regex_exclude)
v -= set(filter(lambda x: re.match(regex_exclude, x), v))
v -= set(filter(lambda x: re.search(regex_exclude, x), v))
logging.debug("Found versions after exclusion: %s" % v)
# latest version is the highest
v = max(v, key=VersionKey)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment