diff --git a/libs/editor/xml_feature.cpp b/libs/editor/xml_feature.cpp index 2d3639f44..8813e851f 100644 --- a/libs/editor/xml_feature.cpp +++ b/libs/editor/xml_feature.cpp @@ -725,7 +725,7 @@ void XMLFeature::OSMBusinessReplacement(uint32_t old_type, uint32_t new_type) ForEachTag([& regex, this](std::string_view key, std::string_view /*value*/) { - if (std::regex_search(key.begin(), key.end(), regex)) + if (std::regex_match(key.begin(), key.end(), regex)) RemoveTag(key); });