From 63e0952823905efa8ee602c66ebc88c13d2cacae Mon Sep 17 00:00:00 2001 From: Sloane Perrault Date: Thu, 6 Jul 2023 10:24:56 -0400 Subject: [PATCH] limit first suffix char to 0..7 --- lib/type_id/base_32.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/type_id/base_32.ex b/lib/type_id/base_32.ex index 5efd537..4c088e9 100644 --- a/lib/type_id/base_32.ex +++ b/lib/type_id/base_32.ex @@ -33,7 +33,8 @@ defmodule TypeID.Base32 do def decode!( <> - ) do + ) + when c1 in ?0..?7 do <