Fix failing test. Code is now aligned with the comment.
This commit is contained in:
parent
a2b84ac617
commit
af520ddc00
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ fun String?.insertBeforeLast(insert: String, delimiter: String = "."): String {
|
|||
* Throws if length is < 1.
|
||||
*/
|
||||
fun String.ellipsize(length: Int): String {
|
||||
require(length > 1)
|
||||
require(length >= 1)
|
||||
|
||||
if (this.length <= length) {
|
||||
return this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue