Improved Spanish accent (#30551)

* Spanish and French comment

* Added the interrobang

* Make spanish accent use sting builder
This commit is contained in:
TakoDragon
2024-08-08 05:08:28 +02:00
committed by GitHub
parent ab28e1a9a9
commit 929e6a2c00
5 changed files with 27 additions and 22 deletions

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Speech
{
public sealed class AccentSystem : EntitySystem
{
public static readonly Regex SentenceRegex = new(@"(?<=[\.!\?])", RegexOptions.Compiled);
public static readonly Regex SentenceRegex = new(@"(?<=[\.!\?‽])(?![\.!\?‽])", RegexOptions.Compiled);
public override void Initialize()
{