Migrate legacy endpoint that have a dash in their id

See gh-21615
This commit is contained in:
Gabriele Bianchet-David
2020-05-28 15:01:31 -04:00
committed by Stephane Nicoll
parent 8962d6ca21
commit 0f9f10f97e
4 changed files with 55 additions and 2 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;
}