Added validators for voice id & voice name
This commit is contained in:
10
Validators/VoiceNameValidator.cs
Normal file
10
Validators/VoiceNameValidator.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace HermesSocketServer.Validators
|
||||
{
|
||||
public class VoiceNameValidator : RegexValidator
|
||||
{
|
||||
public VoiceNameValidator()
|
||||
: base("^[a-z0-9_\\-]{2,32}$", RegexOptions.IgnoreCase, 2, 32) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user