diff --git a/src/main/scala/gs/uuid/v0/UUID.scala b/src/main/scala/gs/uuid/v0/UUID.scala index 548fea4..a4d29fe 100644 --- a/src/main/scala/gs/uuid/v0/UUID.scala +++ b/src/main/scala/gs/uuid/v0/UUID.scala @@ -118,7 +118,8 @@ object UUID: * @return * Hexadecimal string representation of this UUID. */ - def str(dashes: Boolean = false): String = withoutDashes() + def str(dashes: Boolean = false): String = + if dashes then withDashes() else withoutDashes() /** @return * Hexadecimal string representation of this UUID, without dashes.