mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-24 13:25:01 +00:00
Add: shortuuid check, new date layout found
This commit is contained in:

committed by
Sveta Smirnova

parent
a3f3a4d7e5
commit
246f875ed9
@@ -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]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user