Fix Vendor detection bug.
This commit is contained in:
parent
a99728852e
commit
65729ec444
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue