MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / _preprocess

Method _preprocess

utils/install.py:242–254  ·  view source on GitHub ↗
(self, v, separator, ignorecase)

Source from the content-addressed store, hash-verified

240 return "VersionString:" + self.version
241
242 def _preprocess(self, v, separator, ignorecase):
243 if ignorecase:
244 v = v.lower()
245 return [
246 (
247 int(x)
248 if x.isdigit()
249 else [
250 int(y) if y.isdigit() else y for y in re.findall("\d+|[a-zA-Z]+", x)
251 ]
252 )
253 for x in re.split(separator, v)
254 ]
255
256 def compare(self, version2, separator=". |-", ignorecase=True):
257 """

Callers 1

compareMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected