Skip to content

Commit 858765b

Browse files
author
Ivan Lausuch
committed
crowbar: Modify regex of group names to forbid dots
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
1 parent 90c1cb5 commit 858765b

File tree

1 file changed

+1
-1
lines changed
  • crowbar_framework/app/assets/javascripts/barclamps/crowbar

1 file changed

+1
-1
lines changed

crowbar_framework/app/assets/javascripts/barclamps/crowbar/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jQuery(document).ready(function($) {
3030
$('#group-invalid').html()
3131
);
3232

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

0 commit comments

Comments
 (0)