Skip to content

Commit 94e9c1f

Browse files
committed
core: parse 16bit UUID to 128 bit string
1 parent eee6688 commit 94e9c1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ func ParseUUID128(s string) (UUID, error) {
9090
func ParseUUID(s string) (UUID, error) {
9191
switch len(s) {
9292
case UUID16StringLength:
93-
return ParseUUID16(s)
93+
converted := fmt.Sprintf("0000%s-0000-1000-8000-00805F9B34FB", s)
94+
return ParseUUID128(converted)
9495
case UUID32StringLength:
9596
converted := fmt.Sprintf("%s-0000-1000-8000-00805F9B34FB", s)
9697
return ParseUUID128(converted)

0 commit comments

Comments
 (0)