aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/stringutil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/stringutil.kt')
-rw-r--r--src/main/kotlin/util/stringutil.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/kotlin/util/stringutil.kt b/src/main/kotlin/util/stringutil.kt
new file mode 100644
index 0000000..56f8dbe
--- /dev/null
+++ b/src/main/kotlin/util/stringutil.kt
@@ -0,0 +1,6 @@
+
+package moe.nea.firmament.util
+
+fun parseIntWithComma(string: String): Int {
+ return string.replace(",", "").toInt()
+}