From f9c8bc401b53b38d51f76c68b5dc322eced00c65 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 20 Jun 2024 13:19:03 +0200 Subject: [PATCH] Make the identifier error message consistent with the rules 0-9 is accepted too. --- .../cli/src/main/java/io/quarkus/cli/create/TargetGAVGroup.java | 2 +- .../maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/cli/src/main/java/io/quarkus/cli/create/TargetGAVGroup.java b/devtools/cli/src/main/java/io/quarkus/cli/create/TargetGAVGroup.java index 04d083d811f8d..bb1a8f85cad4e 100644 --- a/devtools/cli/src/main/java/io/quarkus/cli/create/TargetGAVGroup.java +++ b/devtools/cli/src/main/java/io/quarkus/cli/create/TargetGAVGroup.java @@ -7,7 +7,7 @@ import picocli.CommandLine.TypeConversionException; public class TargetGAVGroup { - static final String BAD_IDENTIFIER = "The specified %s identifier (%s) contains invalid characters. Valid characters are alphanumeric (A-Za-z), underscore, dash and dot."; + static final String BAD_IDENTIFIER = "The specified %s identifier (%s) contains invalid characters. Valid characters are alphanumeric characters (A-Za-z0-9), underscores, dashes and dots."; static final Pattern OK_ID = Pattern.compile("[0-9A-Za-z_.-]+"); static final String DEFAULT_GAV = CreateProjectHelper.DEFAULT_GROUP_ID + ":" diff --git a/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java index c559521ba1364..55baff707f8c6 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java @@ -57,7 +57,7 @@ */ @Mojo(name = "create", requiresProject = false) public class CreateProjectMojo extends AbstractMojo { - static final String BAD_IDENTIFIER = "The specified %s identifier (%s) contains invalid characters. Valid characters are alphanumeric (A-Za-z), underscore, dash and dot."; + static final String BAD_IDENTIFIER = "The specified %s identifier (%s) contains invalid characters. Valid characters are alphanumeric characters (A-Za-z0-9), underscores, dashes and dots."; static final Pattern OK_ID = Pattern.compile("[0-9A-Za-z_.-]+"); private static final String DEFAULT_GROUP_ID = "org.acme";