Fix Vendor detection bug.

This commit is contained in:
Oliver Rümpelein 2020-05-10 11:28:38 +02:00
parent a99728852e
commit 65729ec444
1 changed files with 2 additions and 2 deletions

View File

@ -249,9 +249,9 @@ enum class Vendor(
constructor(name: String, paramId: Long) : this(name, name, paramId)
companion object: StringGeneratable<Vendor> {
companion object : StringGeneratable<Vendor> {
override val paramKey = "mk"
override fun of(input: String) = values().find { input == it.prettyName }
override fun of(input: String) = values().find { input == it.fullName }
fun searchByName(name: String): List<Vendor> {
val searchName = name.toLowerCase()