Skip to content

Commit

Permalink
Merge pull request #51 from drgrice1/add-zip-to-archives-extension-fix
Browse files Browse the repository at this point in the history
Add the .zip extension when a single file or directory without extension is selected.
  • Loading branch information
pstaabp authored Sep 19, 2023
2 parents 1e17baf + 7b50a49 commit 508a710
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 508a710

Please sign in to comment.