add trimmed uuid to player response
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 14s

This commit is contained in:
Lee
2024-04-11 03:57:46 +01:00
parent 6f840654e9
commit 4f26110405
2 changed files with 17 additions and 0 deletions

View File

@ -22,4 +22,15 @@ public class UUIDUtils {
}
return UUID.fromString(builder.toString());
}
/**
* Remove dashes from a UUID.
*
* @param dashed the UUID with dashes
* @return the UUID without dashes
*/
@NonNull
public static String removeDashes(@NonNull UUID dashed) {
return dashed.toString().replace("-", "");
}
}