Closed KoshelevS 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.
It looks like the library does not support Unicode property escapes like \p{L} in regex validation. Can we add this support.
I think we can change
here https://github.com/aspnet/jquery-validation-unobtrusive/blob/main/src/jquery.validate.unobtrusive.js#L346 to
and
here https://github.com/aspnet/jquery-validation-unobtrusive/blob/main/src/jquery.validate.unobtrusive.js#L369 to
to add this support.
Usage:
<input type="text" data-val-regex-pattern="^[\p{L}]+$" data-val-regex-flags="u" value="asdf">