Another mobster accent fix (#9335)

This commit is contained in:
Kara
2022-07-01 13:47:58 -07:00
committed by GitHub
parent 8e90bf46e9
commit c36e53da29

View File

@@ -47,7 +47,7 @@ public sealed class MobsterAccentSystem : EntitySystem
foreach (var (first, replace) in DirectReplacements)
{
msg = msg.Replace(first, replace, true, CultureInfo.InvariantCulture);
msg = Regex.Replace(msg, $@"(?<!\w){first}(?!\w)", replace, RegexOptions.IgnoreCase);
}
// thinking -> thinkin'