Skip to content

Commit e475e1d

Browse files
author
dnolen
committed
CLJS-1599: UUIDs are not equal for upper/lower case strings
1 parent 93657bc commit e475e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10580,7 +10580,7 @@ reduces them without incurring seq initialization"
1058010580

1058110581
(defn uuid [s]
1058210582
(assert (string? s))
10583-
(UUID. s nil))
10583+
(UUID. (.toLowerCase s) nil))
1058410584

1058510585
(defn random-uuid []
1058610586
(letfn [(hex [] (.toString (rand-int 16) 16))]

0 commit comments

Comments
 (0)