diff options
author | Linnea Gräf <nea@nea.moe> | 2024-02-15 18:41:10 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-02-15 18:41:10 +0100 |
commit | 3e19b97b52fae7422f8b0654da9341bf8c2393cb (patch) | |
tree | dc4bf85f326342a154e78aff3d5b8fdd2c14024e /src/main/kotlin/moe/nea/ledger/NumberUtil.kt | |
parent | e5d2966e05fcaca533c09ab5ec5bfd825848be02 (diff) | |
download | LocalTransactionLedger-3e19b97b52fae7422f8b0654da9341bf8c2393cb.tar.gz LocalTransactionLedger-3e19b97b52fae7422f8b0654da9341bf8c2393cb.tar.bz2 LocalTransactionLedger-3e19b97b52fae7422f8b0654da9341bf8c2393cb.zip |
Added item ids
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/NumberUtil.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/NumberUtil.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/NumberUtil.kt b/src/main/kotlin/moe/nea/ledger/NumberUtil.kt index 8aa9bb8..267a8c5 100644 --- a/src/main/kotlin/moe/nea/ledger/NumberUtil.kt +++ b/src/main/kotlin/moe/nea/ledger/NumberUtil.kt @@ -30,3 +30,4 @@ fun parseShortNumber(string: String): Double { fun <T> Pattern.useMatcher(string: String, block: Matcher.() -> T): T? = matcher(string).takeIf { it.matches() }?.let(block) +fun String.unformattedString(): String = replace("§.".toRegex(), "")
\ No newline at end of file |