From 7b50a4963de88a187db436cfdc479b6557fa591d Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Thu, 14 Sep 2023 13:43:28 -0500 Subject: [PATCH] Add the .zip extension when a single file or directory without extension is selected. --- .../ContentGenerator/Instructor/FileManager/archive.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ContentGenerator/Instructor/FileManager/archive.html.ep b/templates/ContentGenerator/Instructor/FileManager/archive.html.ep index 86773297c1..324bd542f4 100644 --- a/templates/ContentGenerator/Instructor/FileManager/archive.html.ep +++ b/templates/ContentGenerator/Instructor/FileManager/archive.html.ep @@ -11,7 +11,7 @@
<%= 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' =%>