From 16638561a2e2845f658079d3fff1020c09ff35fb Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 16 Oct 2022 15:42:15 +0100 Subject: [PATCH] Add support for parsing UUID versions 5, 6, 7, and 8 --- lib/src/sql/uuid.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/src/sql/uuid.rs b/lib/src/sql/uuid.rs index 6f50e86b..ce9beca5 100644 --- a/lib/src/sql/uuid.rs +++ b/lib/src/sql/uuid.rs @@ -78,7 +78,16 @@ fn uuid_raw(i: &str) -> IResult<&str, Uuid> { char('-'), take_while_m_n(4, 4, is_hex), char('-'), - alt((char('1'), char('2'), char('3'), char('4'))), + alt(( + char('1'), + char('2'), + char('3'), + char('4'), + char('5'), + char('6'), + char('7'), + char('8'), + )), take_while_m_n(3, 3, is_hex), char('-'), take_while_m_n(4, 4, is_hex),