Commit 70c2b045 authored by Seblu's avatar Seblu
Browse files

Introduce regex_split

parent e24c1067
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -191,8 +191,9 @@ class VersionController(object):
            logging.error("No url specified for %s" % name)
            raise InvalidConfigFile("Missing url in config file")
        url = value["url"]
        regex = value.get("regex", "%s[-_]v?(%s)%s" % (
        regex = value.get("regex", "%s%s(%s)%s" % (
                    value.get("regex_name", name),
                    value.get("regex_split", "[-_]v?"),
                    value.get("regex_version", "[-.\w]+"),
                    value.get("regex_ext",
                              "\.(?:tar(?:\.gz|\.bz2|\.xz)?|tgz|tbz2|zip)")))