Add: shortuuid check, new date layout found

This commit is contained in:
Yoann La Cancellera
2023-10-20 11:42:43 +02:00
committed by Sveta Smirnova
parent a3f3a4d7e5
commit 246f875ed9
2 changed files with 4 additions and 0 deletions

View File

@@ -110,6 +110,9 @@ func StringsReplaceReversed(s, old, new string, n int) string {
func UUIDToShortUUID(uuid string) string {
splitted := strings.Split(uuid, "-")
if len(splitted) != 5 {
return uuid
}
return splitted[0] + "-" + splitted[3]
}