mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix failing test. Code is now aligned with the comment.
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ fun String?.insertBeforeLast(insert: String, delimiter: String = "."): String {
|
|||||||
* Throws if length is < 1.
|
* Throws if length is < 1.
|
||||||
*/
|
*/
|
||||||
fun String.ellipsize(length: Int): String {
|
fun String.ellipsize(length: Int): String {
|
||||||
require(length > 1)
|
require(length >= 1)
|
||||||
|
|
||||||
if (this.length <= length) {
|
if (this.length <= length) {
|
||||||
return this
|
return this
|
||||||
|
|||||||
Reference in New Issue
Block a user