Added validators for voice id & voice name

This commit is contained in:
Tom
2024-10-17 19:06:02 +00:00
parent 39c6442126
commit c082054606
4 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
using System.Text.RegularExpressions;
namespace HermesSocketServer.Validators
{
public class VoiceIdValidator : RegexValidator
{
public VoiceIdValidator()
: base("^[a-z0-9]{25}$", RegexOptions.IgnoreCase, 25, 25) { }
}
}