Remove single quote from the list of allowable characters.
Remove single quotes from parsed International macros in the template tester.
This commit is contained in:
parent
528c56a499
commit
4dd7dcfe5e
2 changed files with 3 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ A string that specifies the language that the user should see. Defaults to the
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
my $safeRe = qr/[^\.\w\d\s\/'\^\;\?]/;
|
my $safeRe = qr/[^\.\w\d\s\/\^\;\?]/;
|
||||||
|
|
||||||
sub get {
|
sub get {
|
||||||
my ($self, $id, $namespace, $language) = @_;
|
my ($self, $id, $namespace, $language) = @_;
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,8 @@ while (my $templateAsset = $getATemplate->()) {
|
||||||
}
|
}
|
||||||
while ($template =~ /$macro/msgc) {
|
while ($template =~ /$macro/msgc) {
|
||||||
my ($label, $namespace) = split /,/, $1;
|
my ($label, $namespace) = split /,/, $1;
|
||||||
|
$label =~ tr/'//d;
|
||||||
|
$namespace =~ tr/'//d;
|
||||||
push @templateLabels, {
|
push @templateLabels, {
|
||||||
label => $label,
|
label => $label,
|
||||||
namespace => $namespace,
|
namespace => $namespace,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue