Update maybe json input check

This commit is contained in:
Ivan Grachev 2021-07-23 20:44:40 +03:00
parent de3277d22d
commit 0c4e90bfd8

View File

@ -78,7 +78,7 @@ struct AccountsService {
private extension String {
var maybeJSON: Bool {
return hasPrefix("{") && hasSuffix("}")
return hasPrefix("{") && hasSuffix("}") && count > 3
}
}