From 2c5e2e1e5c2ab39c8fb6208c5184d0b3e8504107 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sun, 27 Feb 2022 17:40:11 +0100 Subject: [PATCH] JSON parser: Add explanatory RegEx --- json.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json.lua b/json.lua index 0d602fc..e4f9bb3 100644 --- a/json.lua +++ b/json.lua @@ -39,7 +39,7 @@ local decoding_escapes = { -- Set up a DFA for number syntax validations local number_dfa -do +do -- as a RegEx: (0|(1-9)(0-9)*)[.(0-9)+[(e|E)[+|-](0-9)+]]; does not need to handle the first sign -- TODO proper DFA utilities local function set_transitions(state, transitions) for chars, next_state in pairs(transitions) do