Closed leppie closed 2 years ago
Hi. Thanks for contacting us. We're closing this issue as there was not much community interest in this ask for quite a while now. You can learn more about our triage process and how we handle issues by reading our Triage Process writeup.
https://github.com/aspnet/jquery-validation-unobtrusive/blob/master/src/jquery.validate.unobtrusive.js#L347
The following
should be
as
value
can be an array from aselect
withmultiple
attribute.RegExp.exec
will correctly convert an array into a comma-seperated string for the match and populate theinput
property in the result.The following returns the same output, but the subsequent length test fails for the array version.
While regex is hard for this, the string case should still work exactly the same.
This should allow complex regex validation as:
Sidenote:
RegularExpressionAttribute
also cant deal with a list, but I can at least inherit from it to allow that.