Skip to content

Commit

Permalink
#45 Revert abbreviation variable extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Nov 12, 2024
1 parent e52bbfc commit a0b9fdb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ package ru.ifmo.se.dating.text

import org.apache.commons.lang3.StringUtils

private const val DEFAULT_ABBREVIATION_LENGTH = 16

fun String.abbreviated(maxLength: Int = DEFAULT_ABBREVIATION_LENGTH): String =
fun String.abbreviated(maxLength: Int = 16): String =
StringUtils.abbreviate(this, maxLength)

0 comments on commit a0b9fdb

Please sign in to comment.