From bf6e991ce7564f9468bd5b9a10009a052f6043d5 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Jul 2025 16:39:42 +0200 Subject: [PATCH] Fix t_HEX_INTEGER to accept lower-case digits a-f --- edn_format/edn_lex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edn_format/edn_lex.py b/edn_format/edn_lex.py index f84c20f..8dfb886 100644 --- a/edn_format/edn_lex.py +++ b/edn_format/edn_lex.py @@ -256,7 +256,7 @@ def t_INTEGER(t): def t_HEX_INTEGER(t): - r"""[+-]?0x[A-F0-9]+""" + r"""[+-]?0x[0-9A-Fa-f]+""" t.value = int(t.value, 16) return t