MCPcopy
hub / github.com/s0md3v/XSStrike / _to_comparable

Function _to_comparable

plugins/retireJs.py:131–137  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

129
130
131def _to_comparable(n):
132 if (not is_defined(n)):
133 return 0
134 if (re.search(r'^[0-9]+$', n)):
135 return int(str(n), 10)
136
137 return n
138
139
140def _replace_version(jsRepoJsonAsText):

Callers 1

_is_at_or_aboveFunction · 0.85

Calls 1

is_definedFunction · 0.85

Tested by

no test coverage detected