#27945: RegexValidator uses search instead of match
------------------------------+--------------------------------------
Reporter: Shubham Jain | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by Shubham Jain):
So the
[documentation](https://docs.djangoproject.com/en/dev/ref/validators/#django.core.validators.RegexValidator.regex)
says, "regex pattern to search for provided value". I suppose this means,
you try to see if value fits in the regex. But instead it sees if regex
fits anywhere in the value. So in documentation, it must be "regex pattern
to search for, in the provided value".
--
Ticket URL: <https://code.djangoproject.com/ticket/27945#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.6e01eb86f62043f4d27a8a2069f20f76%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.