summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globals.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 2dd4dbc98..2bbaf3b15 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1649,7 +1649,7 @@ sub GetOutputFormats {
# Loop over each file in the sub-directory looking for format files
# (files whose name looks like SCRIPT-FORMAT.EXT.tmpl).
foreach my $file (@files) {
- if ($file =~ /^$script-(.+)\.(.+)\.(tmpl)$/) {
+ if ($file =~ /^\Q$script\E-(.+)\.(.+)\.(tmpl)$/) {
$formats->{$1} = {
'template' => $file ,
'extension' => $2 ,