From da9f2af963b191cdf1c65fbaf1e2c01ba589f3bf Mon Sep 17 00:00:00 2001 From: map-per Date: Thu, 13 Nov 2025 11:53:15 +0100 Subject: [PATCH] use full regex match Signed-off-by: map-per --- libs/editor/xml_feature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });