From f0311e33e2d09e225810d41469b0a40ddda54404 Mon Sep 17 00:00:00 2001 From: pantor Date: Thu, 23 Nov 2017 22:42:16 +0100 Subject: [PATCH] fix read json bug --- src/inja.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inja.hpp b/src/inja.hpp index 4f95da4..1e307be 100644 --- a/src/inja.hpp +++ b/src/inja.hpp @@ -509,7 +509,7 @@ public: {Parsed::Function::DivisibleBy, Regex{"divisibleBy\\(\\s*(.*?)\\s*,\\s*(.*?)\\s*\\)"}}, {Parsed::Function::Odd, Regex{"odd\\(\\s*(.*?)\\s*\\)"}}, {Parsed::Function::Even, Regex{"even\\(\\s*(.*?)\\s*\\)"}}, - {Parsed::Function::ReadJson, Regex{"\\s*(.*)\\s*"}} + {Parsed::Function::ReadJson, Regex{"\\s*([^()]*)\\s*"}} }; Parser() { }