Skip to content

Commit

Permalink
Merge pull request #41332 from gsmet/improve-identifier-message
Browse files Browse the repository at this point in the history
Make the identifier error message consistent with the rules
  • Loading branch information
gastaldi authored Jun 22, 2024
2 parents 2f41fac + f9c8bc4 commit 3d9cfcf
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 3d9cfcf

Please sign in to comment.