so that '{{foo}}{{bar}}' is not detected as being an unknown variable
named 'foo}}{{bar', but as 'foo' (and 'bar').
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
my $vars = join('|', keys $info->%*);
$notes_template =~ s/\{\{($vars)\}\}/$info->{$1}/g;
my $vars = join('|', keys $info->%*);
$notes_template =~ s/\{\{($vars)\}\}/$info->{$1}/g;
- die "unexpected variable name '$1'" if $notes_template =~ m/\{\{([^\s]+)\}\}/;
+ die "unexpected variable name '$1'" if $notes_template =~ m/\{\{([^\s}]+)\}\}/;
return $notes_template;
};
return $notes_template;
};