TP-37069 trim input text before doing min length validation in length… (#144)
This commit is contained in:
@@ -15,7 +15,7 @@ class LengthRangeValidation(
|
||||
private val maxLength: Int? = null
|
||||
) : UiTronBaseValidation() {
|
||||
override fun performValidation(inputText: String?): Boolean {
|
||||
return inputText?.length.orZero() >= minLength.orZero() &&
|
||||
return inputText?.trim()?.length.orZero() >= minLength.orZero() &&
|
||||
inputText?.length.orZero() <= maxLength.orVal(Int.MAX_VALUE)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user