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

Function validPluginVersion

internal/pluginhost/platform.go:43–45  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

41}
42
43func validPluginVersion(version string) bool {
44 return version != "" && !strings.HasPrefix(version, "v") && pluginVersionPattern.MatchString(version)
45}
46
47func pluginIDFromPath(path string) string {
48 file, ok := pluginFileFromPath(path, "")

Callers 2

pluginFileFromPathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected