From 20fca88a073e44976984ab9c08ff941e167d3400 Mon Sep 17 00:00:00 2001 From: HitPanda <104197232+EnefFlow@users.noreply.github.com> Date: Sat, 28 Oct 2023 15:49:45 +0300 Subject: [PATCH] fix tts sanitize (#517) --- Content.Server/White/TTS/TTSSystem.Sanitize.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/White/TTS/TTSSystem.Sanitize.cs b/Content.Server/White/TTS/TTSSystem.Sanitize.cs index 7925154adf..7a79c8da98 100644 --- a/Content.Server/White/TTS/TTSSystem.Sanitize.cs +++ b/Content.Server/White/TTS/TTSSystem.Sanitize.cs @@ -18,7 +18,7 @@ public sealed partial class TTSSystem { text = text.Trim(); text = Regex.Replace(text, @"Ё", "Е"); - text = Regex.Replace(text, @"[^a-zA-Zа-яА-ЯёЁ0-9,\-,+, ,?,!]", ""); + text = Regex.Replace(text, @"[^a-zA-Zа-яА-ЯёЁ0-9,\-,+, ,?,!,.]", ""); text = Regex.Replace(text, @"[a-zA-Z]", ReplaceLat2Cyr, RegexOptions.Multiline | RegexOptions.IgnoreCase); text = Regex.Replace(text, @"(?