Skip to content

Commit 67721f6

Browse files
committed
Update exception message to precise space is allowed in the wild card
Signed-off-by: CARON Alice <[email protected]>
1 parent e8e62a6 commit 67721f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iidm/iidm-api/src/main/java/com/powsybl/iidm/network/identifiers/IdWithWildcardsNetworkElementIdentifier.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private void initialize() {
5050
String allowedCharactersRegex = "^[A-Za-z0-9_? .-]*$";
5151

5252
if (!identifier.matches(allowedCharactersRegex)) {
53-
throw new PowsyblException("Only characters allowed for this identifier are letters, numbers, '_', '-', '.' and the wildcard character '?'");
53+
throw new PowsyblException("Only characters allowed for this identifier are letters, numbers, '_', '-', '.', spaces and the wildcard character '?'");
5454
}
5555
int separatorNumber = StringUtils.countMatches(identifier, WILDCARD);
5656
if (separatorNumber > ALLOWED_WILDCARDS_NUMBER) {

0 commit comments

Comments
 (0)