Merge branch '2.2.x' into 2.3.x

Closes gh-22849
This commit is contained in:
Stephane Nicoll
2020-08-10 16:05:13 +02:00
5 changed files with 68 additions and 7 deletions

View File

@@ -131,7 +131,7 @@ public final class EndpointId {
private static String migrateLegacyId(Environment environment, String value) {
if (environment.getProperty(MIGRATE_LEGACY_NAMES_PROPERTY, Boolean.class, false)) {
return value.replace(".", "");
return value.replaceAll("[-.]+", "");
}
return value;
}