Skip to content

Commit 1a42402

Browse files
authored
Add support for UUIDv7 (#2086)
1 parent 20ec3c8 commit 1a42402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sequin/string.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ defmodule Sequin.String do
4444
str
4545
|> UUID.info()
4646
|> case do
47-
{:ok, info} -> info[:version] == 4 and info[:variant] == :rfc4122
47+
{:ok, info} -> info[:version] in [7, 4] and info[:variant] == :rfc4122
4848
_ -> false
4949
end
5050
end

0 commit comments

Comments
 (0)