MCPcopy
hub / github.com/NullArray/AutoSploit / check_version_number

Function check_version_number

lib/creation/issue_creator.py:73–85  ·  view source on GitHub ↗

check the version number before creating an issue

(current_version)

Source from the content-addressed store, hash-verified

71
72
73def check_version_number(current_version):
74 """
75 check the version number before creating an issue
76 """
77 version_checker = re.compile(r"version.=.\S\d.\d.(\d)?", re.I)
78 try:
79 req = requests.get("https://raw.githubusercontent.com/NullArray/AutoSploit/master/lib/banner.py")
80 available_version = version_checker.search(req.content).group().split("=")[-1].split('"')[1]
81 if available_version > current_version:
82 return False
83 return True
84 except Exception:
85 return True
86
87
88def create_identifier(data):

Callers 1

request_issue_creationFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected