Accents Event to Shared (#38948)

* 27 file diff

* 27 file diff 2

* Apply suggestions from code review

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
Princess Cheeseballs
2025-07-12 13:52:51 -07:00
committed by GitHub
parent cfe825b0e3
commit 367ff79006
27 changed files with 62 additions and 37 deletions

View File

@@ -1,5 +1,6 @@
using Content.Server.Speech.Components;
using System.Text.RegularExpressions;
using Content.Server.Speech.Components;
using Content.Shared.Speech;
namespace Content.Server.Speech.EntitySystems;
@@ -32,7 +33,7 @@ public sealed class FrenchAccentSystem : EntitySystem
// spaces out ! ? : and ;.
msg = RegexSpacePunctuation.Replace(msg, " $&");
// replaces th with 'z or 's depending on the case
foreach (Match match in RegexTh.Matches(msg))
{