Skip to content
Snippets Groups Projects
Commit f84f351c authored by Robert Anderson's avatar Robert Anderson
Browse files

* Allow blank "" defaults in templates

parent 84b840c2
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ sub templateReplace
my @valueArray = ();
# Replace blanks
while (my ($entireMacro,$section,$item,$default) = ($string =~ /(\%{([a-z]+)\.([a-z0-9\-]+)(?:=([^}]+))?})/i )) {
while (my ($entireMacro,$section,$item,$default) = ($string =~ /(\%{([a-z]+)\.([a-z0-9\-]+)(?:=([^}]*))?})/i )) {
# Replace macro with ?
$string =~ s/$entireMacro/\?/;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment