diff --git a/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs b/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs index 26695954..210b77f1 100644 --- a/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs +++ b/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs @@ -26,16 +26,12 @@ public class ProfileSptCommand( * spt profile level 20 * spt profile skill metabolism 10 */ - // TODO: Fix this shit as Valens doesn't know Regex. protected Regex _commandRegex = new( @"^spt profile (?level|skill)((?<=.*skill) (?[\w]+))? (?(?!0+)[0-9]+)$" ); protected Regex _examineRegex = new(@"^spt profile (?examine)"); - // - protected SavedCommand _savedCommand = null; - public string GetCommand() { return "profile"; diff --git a/Libraries/Core/Utils/HashUtil.cs b/Libraries/Core/Utils/HashUtil.cs index 771e089a..bf377c45 100644 --- a/Libraries/Core/Utils/HashUtil.cs +++ b/Libraries/Core/Utils/HashUtil.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.RegularExpressions; using System.Security.Cryptography; using SptCommon.Annotations; @@ -92,7 +92,7 @@ public class HashUtil return Convert.ToHexString(sha1HashData).Replace("-", string.Empty); } - throw new NotImplementedException("Provided hash algorithm is not supported."); + throw new NotImplementedException($"Provided hash algorithm: {algorithm} is not supported."); } ///