Skip to content

Commit

Permalink
crowbar: Modify regex of group names to forbid dots (SOC-8011)
Browse files Browse the repository at this point in the history
Group names cannot contain dots because it conflicts with
the url route

/nodes/groups/1.0/:id/:group(.:format)

Now JS doesn't allow dots in the group names

More info at https://jira.suse.com/browse/SOC-8011
  • Loading branch information
Ivan Lausuch authored and ilausuch committed Jul 10, 2019
1 parent 90c1cb5 commit 3c9a3ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jQuery(document).ready(function($) {
$('#group-invalid').html()
);

if ($input.val().match(/^[a-zA-Z][a-zA-Z0-9._:-]+$/)) {
if ($input.val().match(/^[a-zA-Z][a-zA-Z0-9_:-]+$/)) {
$('#nodegroups').append(
groupTemplate({
group: $input.val()
Expand Down

0 comments on commit 3c9a3ce

Please sign in to comment.