From: Whisper <121047731+QuietlyWhisper@users.noreply.github.com> Date: Sat, 8 Jun 2024 10:37:55 +0000 (-0400) Subject: allow ' in character names (#28652) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=123dfee3a37da657633381990c50d8fb81d21b79;p=space-station-14.git allow ' in character names (#28652) --- diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index 20c54cd268..3ee162fe72 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -25,7 +25,7 @@ namespace Content.Shared.Preferences [Serializable, NetSerializable] public sealed partial class HumanoidCharacterProfile : ICharacterProfile { - private static readonly Regex RestrictedNameRegex = new("[^A-Z,a-z,0-9, -]"); + private static readonly Regex RestrictedNameRegex = new("[^A-Z,a-z,0-9, ,\\-,']"); private static readonly Regex ICNameCaseRegex = new(@"^(?\w)|\b(?\w)(?=\w*$)"); public const int MaxNameLength = 32;