diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-11-28 16:11:06 +0300 |
---|---|---|
committer | Ilya Zverev <ilya@zverev.info> | 2017-11-28 16:21:06 +0300 |
commit | 6482843cb0afec52d8cfd057b21788b6008666cc (patch) | |
tree | 86c1d5438f57f0b153442c3cd14e5c3ca7fc06b0 /indexer/editable_map_object.cpp | |
parent | 9f63e855b923d90fe5d8b5e84a4e16db5c597e8a (diff) |
[editor] name validation fix - # and № are allowed
Diffstat (limited to 'indexer/editable_map_object.cpp')
-rw-r--r-- | indexer/editable_map_object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/editable_map_object.cpp b/indexer/editable_map_object.cpp index 3c1b3d123a..82728b3f1d 100644 --- a/indexer/editable_map_object.cpp +++ b/indexer/editable_map_object.cpp @@ -768,13 +768,13 @@ 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; std::u32string const u32name = converter.from_bytes(name); - std::u32string const excludedSymbols = U"^~§><{}[]*=_#№±\n\t\r\v\f|√•π÷׶∆°"; + std::u32string const excludedSymbols = U"^~§><{}[]*=_±\n\t\r\v\f|√•π÷׶∆°"; for (auto const ch : u32name) { |