1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 10:13:39 +00:00

dockerhub version by first character number

This commit is contained in:
Kyle Spearrin
2018-03-26 11:39:28 -04:00
parent 5b08763ce5
commit 83fd8b55ac

View File

@@ -53,7 +53,7 @@ namespace Bit.Admin.Controllers
foreach(var result in results)
{
var name = result["name"].ToString();
if(name.Count(c => c == '.') > 2)
if(string.IsNullOrWhiteSpace(name) && name.Length > 0 && char.IsNumber(name[0]))
{
return new JsonResult(name);
}