Skip to content

Commit

Permalink
remove issues
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
  • Loading branch information
EtienneLt committed Apr 5, 2024
1 parent afe2e9c commit aae3516
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
public class ElementWithUnknownCharacterIdentifier implements NetworkElementIdentifier {
private String identifier;
public static final String SEPARATOR = "\\?";
public static final String SEPARATOR = "?";
public static final int SEPARATOR_NUMBER_ALLOWED = 5;
private final String contingencyId;

Expand All @@ -48,7 +48,7 @@ private void initialize() {
if (separatorNumber > SEPARATOR_NUMBER_ALLOWED) {
throw new PowsyblException("there can be maximum " + SEPARATOR_NUMBER_ALLOWED + " \'?\'");
}
identifier = identifier.replaceAll("\\.", "\\\\.").replaceAll(SEPARATOR, ".");
identifier = identifier.replace(".", "\\.").replace(SEPARATOR, ".");
}

@Override
Expand Down

0 comments on commit aae3516

Please sign in to comment.