[editor] The character '+' is valid for name now

This commit is contained in:
Arsentiy Milchakov 2018-04-19 17:26:59 +03:00 committed by Aleksandr Zatsepin
parent 6b56696af8
commit 11c74d704f

View file

@ -762,7 +762,7 @@ bool EditableMapObject::ValidateName(string const & name)
return true;
if (strings::IsASCIIString(name))
return regex_match(name, regex(R"(^[ A-Za-z0-9.,?!@#$%&()\-:;"'`]+$)"));
return regex_match(name, regex(R"(^[ A-Za-z0-9.,?!@#$%&()\-\+:;"'`]+$)"));
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> converter;