MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / normalizeVersion

Function normalizeVersion

internal/pluginstore/version.go:26–32  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

24}
25
26func normalizeVersion(version string) string {
27 version = strings.TrimSpace(version)
28 if len(version) > 1 && (version[0] == 'v' || version[0] == 'V') {
29 version = version[1:]
30 }
31 return version
32}
33
34// compareVersions compares dotted numeric versions segment by segment, with
35// missing segments treated as zero. It reports false when either version

Callers 13

ReleaseVersionFunction · 0.85
InstallMethod · 0.85
InstallVersionMethod · 0.85
InstallDirectMethod · 0.85
directPluginVersionFunction · 0.85
InstallArchiveFunction · 0.85
installTargetPathFunction · 0.85
versionedPluginFileNameFunction · 0.85
ValidateMethod · 0.85
normalizeRegistryFunction · 0.85
ValidatePluginVersionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected