Skip to content

Commit

Permalink
Make the identifier error message consistent with the rules
Browse files Browse the repository at this point in the history
0-9 is accepted too.
  • Loading branch information
gsmet committed Jun 20, 2024
1 parent 9cf4529 commit f9c8bc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ":"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f9c8bc4

Please sign in to comment.