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

Function validPluginVersion

internal/pluginstore/registry.go:407–409  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

405}
406
407func validPluginVersion(version string) bool {
408 return version != "" && !strings.HasPrefix(version, "v") && pluginVersionPattern.MatchString(version)
409}
410
411func validPluginID(id string) bool {
412 return pluginIDPattern.MatchString(id)

Callers 9

ReleaseVersionFunction · 0.70
InstallVersionMethod · 0.70
InstallDirectMethod · 0.70
InstallArchiveFunction · 0.70
installTargetPathFunction · 0.70
pluginFileInfoFromPathFunction · 0.70
ValidateMethod · 0.70
ValidatePluginFunction · 0.70
ValidatePluginVersionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected