Skip to content

Commit

Permalink
Add the .zip extension when a single file or directory without extens…
Browse files Browse the repository at this point in the history
…ion is selected.
  • Loading branch information
drgrice1 committed Sep 14, 2023
1 parent 1e17baf commit 7b50a49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="input-group input-group-sm mb-2">
<label class="input-group-text" for="archive-filename"><%= maketext('Archive Filename') %>:</label>
<%= text_field archive_filename =>
@$files == 1 ? $files->[0] =~ s/\..*$/.zip/r : 'webwork_files.zip',
@$files == 1 ? $files->[0] =~ s/(\..*)?$/.zip/r : 'webwork_files.zip',
id => 'archive-filename', placeholder => maketext('Archive Filename'),
class => 'form-control', size => 30, dir => 'ltr' =%>
</div>
Expand Down

0 comments on commit 7b50a49

Please sign in to comment.