Can support for dash be added for snapshot_prefix and snapshot_label, or it create any issues?
If it is ok, the following line can be modified
432:# Allow only letters, numbers and underscores for the snapshot prefix.
433:[[ ! $snapshot_prefix =~ ^[A-Za-z0-9_]+$ ]] && die "The snapshot prefix may only contain letters, digits and underscores."
434:
435:# Allow only letters, numbers and underscores for the snapshot label.
436:[ -v snapshot_label ] && [[ ! $snapshot_label =~ ^[A-Za-z0-9_]+$ ]] && die "The snapshot label may only contain letters, digits and underscores."
to:
432:# Allow only letters, numbers, dashes and underscores for the snapshot prefix.
433:[[ ! $snapshot_prefix =~ ^[A-Za-z0-9_-]+$ ]] && die "The snapshot prefix may only contain letters, digits, dashes and underscores."
434:
435:# Allow only letters, numbers, dashes and underscores for the snapshot label.
436:[ -v snapshot_label ] && [[ ! $snapshot_label =~ ^[A-Za-z0-9_-]+$ ]] && die "The snapshot label may only contain letters, digits, dashes and underscores."
Can support for dash be added for snapshot_prefix and snapshot_label, or it create any issues?$snapshot_prefix =~ ^[A-Za-z0-9_]+$ ]] && die "The snapshot prefix may only contain letters, digits and underscores."$snapshot_label =~ ^[A-Za-z0-9_]+$ ]] && die "The snapshot label may only contain letters, digits and underscores."
If it is ok, the following line can be modified
432:# Allow only letters, numbers and underscores for the snapshot prefix.
433:[[ !
434:
435:# Allow only letters, numbers and underscores for the snapshot label.
436:[ -v snapshot_label ] && [[ !
to:
432:# Allow only letters, numbers, dashes and underscores for the snapshot prefix.$snapshot_prefix =~ ^[A-Za-z0-9_-]+$ ]] && die "The snapshot prefix may only contain letters, digits, dashes and underscores."$snapshot_label =~ ^[A-Za-z0-9_-]+$ ]] && die "The snapshot label may only contain letters, digits, dashes and underscores."
433:[[ !
434:
435:# Allow only letters, numbers, dashes and underscores for the snapshot label.
436:[ -v snapshot_label ] && [[ !