Commit 8d3a0797 by Maarten L. Hekkelman

Fix regex for item_validator

parent 718c1385
...@@ -90,7 +90,7 @@ DDL_PrimitiveType map_to_primitive_type(std::string_view s) ...@@ -90,7 +90,7 @@ DDL_PrimitiveType map_to_primitive_type(std::string_view s)
type_validator::type_validator(std::string_view name, DDL_PrimitiveType type, std::string_view rx) type_validator::type_validator(std::string_view name, DDL_PrimitiveType type, std::string_view rx)
: m_name(name) : m_name(name)
, m_primitive_type(type) , m_primitive_type(type)
, m_rx(new regex_impl(rx)) , m_rx(new regex_impl(rx.empty() ? ".+" : rx)) /// Empty regular expressions are not allowed, in libcpp's std::regex (POSIX?)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment