Merge branch 'main' of https://github.com/sp-tarkov/server-csharp
This commit is contained in:
-4
@@ -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 (?<command>level|skill)((?<=.*skill) (?<skill>[\w]+))? (?<quantity>(?!0+)[0-9]+)$"
|
||||
);
|
||||
|
||||
protected Regex _examineRegex = new(@"^spt profile (?<command>examine)");
|
||||
|
||||
//
|
||||
protected SavedCommand _savedCommand = null;
|
||||
|
||||
public string GetCommand()
|
||||
{
|
||||
return "profile";
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user