ValidatePluginID reports whether id can be used as a plugin configuration key.
(id string)
| 33 | |
| 34 | // ValidatePluginID reports whether id can be used as a plugin configuration key. |
| 35 | func ValidatePluginID(id string) bool { |
| 36 | return validPluginID(id) |
| 37 | } |
| 38 | |
| 39 | func validPluginID(id string) bool { |
| 40 | return pluginIDPattern.MatchString(id) |
no test coverage detected