Migrate legacy endpoint that have a dash in their id
See gh-21615
This commit is contained in:
committed by
Stephane Nicoll
parent
8962d6ca21
commit
0f9f10f97e
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user