Commit ff3be75d authored by Seblu's avatar Seblu
Browse files

Fix use of regex_exclude string in matching

parent fa55513a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,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: "rc" in x, v))
                    v -= set(filter(lambda x: re.match(regex_exclude, x), v))
                    logging.debug("Found versions after exclusion: %s" % v)
                # latest version is the highest
                v = max(v, key=VersionKey)