Skip to content

Commit

Permalink
chore: Remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jul 6, 2024
1 parent ee41433 commit 96fca20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/src/main/kotlin/StringExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ public fun String.trimAround(word: String? = null, contextLength: Int = 20): Str
start--
}

println(start)
// Find end index by moving forward contextLength characters and then to the next space
var end = (index + wordLength + contextLength).coerceAtMost(length)
while (end < length && !this[end].isWhitespace()) {
end++
}
println(end)
println(this)

val trimmed = substring(start, end).trim()

Expand Down

0 comments on commit 96fca20

Please sign in to comment.