use full regex match

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-11-13 11:53:15 +01:00
parent f292298c4e
commit da9f2af963

View File

@@ -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);
});