a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
10 lines
348 B
C#
10 lines
348 B
C#
namespace System.Web.Mvc {
|
|
public class ModelClientValidationRegexRule : ModelClientValidationRule {
|
|
public ModelClientValidationRegexRule(string errorMessage, string pattern) {
|
|
ErrorMessage = errorMessage;
|
|
ValidationType = "regex";
|
|
ValidationParameters.Add("pattern", pattern);
|
|
}
|
|
}
|
|
}
|