From a056150d52bb93a1818dfda5470ccf45a43e5844 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 18 Sep 2024 10:43:06 -0400 Subject: updatelang: Flag '|' in voice strings too Change-Id: Id82bf7bd19741e7275d188ceeea872ebeb30e1eb --- tools/updatelang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/updatelang') diff --git a/tools/updatelang b/tools/updatelang index 1fb594d596..ff4ce340e0 100755 --- a/tools/updatelang +++ b/tools/updatelang @@ -476,9 +476,9 @@ foreach my $id (@langorder) { } my $sane = $lang{$id}{'voice'}{$tgt}; $sane =~ s/^~?(.*)/$1/; # Strip off leading ~ if it's there as it's not a legal character otherwise - if ($sane =~ tr/%"~:\[\]<>{}//) { + if ($sane =~ tr/%"~:\[\]<>{}\|//) { # Suspicious characters that are not typically voiced.. - $lang{$id}{'notes'} .= "### The section for '$id:$tgt' has some suspicious characters (eg %,\",~,:,<,>,[,],{,}), please correct!\n"; + $lang{$id}{'notes'} .= "### The section for '$id:$tgt' has some suspicious characters (eg %,\",~,:,<,>,[,],{,},|), please correct!\n"; # print "#!! '$id:$tgt' suspicious characters\n"; } if ($lang{$id}{'voice'}{$tgt} =~ /\.\.\./) { -- cgit v1.2.3