]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
allow ' in character names (#28652)
authorWhisper <121047731+QuietlyWhisper@users.noreply.github.com>
Sat, 8 Jun 2024 10:37:55 +0000 (06:37 -0400)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2024 10:37:55 +0000 (20:37 +1000)
Content.Shared/Preferences/HumanoidCharacterProfile.cs

index 20c54cd2687bbed15d0a87c15dd80c76e0d60f53..3ee162fe725137ea041aea6e9b5e853549767d2f 100644 (file)
@@ -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(@"^(?<word>\w)|\b(?<word>\w)(?=\w*$)");
 
         public const int MaxNameLength = 32;