From e146d7f64df7782bebdb238b52bd67ed916abd6b Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 24 Apr 2021 14:54:52 +0900 Subject: commit #1 - YAY PARTY KCIKER!!@!@! --- src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java index acfc430f..a7b4a598 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java @@ -89,5 +89,17 @@ public class TextUtils { return stringBuilder.toString(); } + public static String insertDashUUID(String uuid) { + StringBuilder sb = new StringBuilder(uuid); + sb.insert(8, "-"); + sb = new StringBuilder(sb.toString()); + sb.insert(13, "-"); + sb = new StringBuilder(sb.toString()); + sb.insert(18, "-"); + sb = new StringBuilder(sb.toString()); + sb.insert(23, "-"); + + return sb.toString(); + } } \ No newline at end of file -- cgit