mirror of
https://github.com/pantor/inja.git
synced 2026-03-15 13:41:25 +00:00
fix parser bug 3
This commit is contained in:
@@ -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() { }
|
||||
@@ -589,7 +589,7 @@ public:
|
||||
return result;
|
||||
}
|
||||
default: {
|
||||
throw std::runtime_error("Parser error: Could not parse input: " + input);
|
||||
throw std::runtime_error("Parser error: Could not parse expression: " + input);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user