Relax plugin id url heuristic, since java uses single slash instead of double

This commit is contained in:
Ryan Ernst 2016-06-15 11:43:38 -07:00
parent 9c65bd4ac4
commit 8de90a66a1
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class InstallPluginCommand extends SettingCommand {
}
// fall back to plain old URL
if (pluginId.contains("://") == false) {
if (pluginId.contains(":/") == false) {
// definitely not a valid url, so assume it is a plugin name
throw new UserError(ExitCodes.USAGE, "Unknown plugin " + pluginId);
}