diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-19 12:42:20 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-19 12:42:20 +0200 |
commit | 28745d981c1ed2008d4ebb71b0b69ba217c1770d (patch) | |
tree | 33553fecda477ac38e92e4aaa276de0532cd22f2 /src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | |
parent | cee8555256f3e9d57f1ac01a4ef6ce8c2cc81e2d (diff) | |
download | skyhanni-28745d981c1ed2008d4ebb71b0b69ba217c1770d.tar.gz skyhanni-28745d981c1ed2008d4ebb71b0b69ba217c1770d.tar.bz2 skyhanni-28745d981c1ed2008d4ebb71b0b69ba217c1770d.zip |
RNG Meter Display
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt index 90dcddf9b..917ec5c88 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt @@ -105,4 +105,6 @@ object StringUtils { "$format$text" } } + + fun String.removeWordsAtEnd(i: Int) = split(" ").dropLast(i).joinToString(" ") }
\ No newline at end of file |