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

Function validPluginID

internal/pluginhost/platform.go:39–41  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

37}
38
39func validPluginID(id string) bool {
40 return pluginIDPattern.MatchString(id)
41}
42
43func validPluginVersion(version string) bool {
44 return version != "" && !strings.HasPrefix(version, "v") && pluginVersionPattern.MatchString(version)

Callers 2

ValidatePluginIDFunction · 0.70
pluginFileFromPathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected