Skip to content

Commit

Permalink
Merge pull request #3235 from OpenLiberty/revert-3223-changeGroupRules
Browse files Browse the repository at this point in the history
Revert "Change group rules"
  • Loading branch information
amyreit authored Jun 28, 2023
2 parents 152a285 + 5645442 commit e8c21b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/content/_assets/js/builds.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ function add_invalid_message(field_id, valid) {
);
} else if (field_id == 'g') {
message = $(
'<p class=\'invalid_field_message\'>Valid characters for package names include a-z, A-Z, \'_\' and 0-9. Packages must be separated by \'.\' </p>'
'<p class=\'invalid_field_message\'>Valid characters for the first package name include a-z. Subpackages also allow A-Z, \'_\' and 0-9. Packages must be separated by \'.\' </p>'
);
}
div.append(warning_icon).append(message);
Expand All @@ -862,7 +862,7 @@ function add_invalid_message(field_id, valid) {
function validate_group_name() {
// Starts with a package of all lowercase char string and then contains letters (either lower or uppercase),
// numbers, underscores in other subpackages all separated by periods Eg: com.Acme.my_widget.v2
var valid_syntax = /^[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]*)+$/g;
var valid_syntax = /^[a-z]+(\.[A-Za-z]\w*)+$/g;
var value = $('.starter_field[data-starter-field=\'g\'] input').val();
var valid = value == '' ? false : valid_syntax.test(value);
add_invalid_message('g', valid);
Expand Down

0 comments on commit e8c21b0

Please sign in to comment.