diff options
| author | antoliny0919 <antoliny0919@gmail.com> | 2024-11-07 09:39:29 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-11-11 14:50:13 +0100 |
| commit | 63dbe30d3363715deaf280214d75b03f6d65a571 (patch) | |
| tree | fd4f4d2fe5d1d196156a6e16ebc77a7a39729210 /docs/ref/forms | |
| parent | 54774e790d461d94653a4a83a7f5cc456e6d246a (diff) | |
Updated validate_slug regular expression in form validation docs.
Outdated since 014247ad1922931a2f17beaf6249247298e9dc44.
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/validation.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt index 7a037eaf75..614b345b5a 100644 --- a/docs/ref/forms/validation.txt +++ b/docs/ref/forms/validation.txt @@ -254,7 +254,7 @@ Common cases such as validating against an email or a regular expression can be handled using existing validator classes available in Django. For example, ``validators.validate_slug`` is an instance of a :class:`~django.core.validators.RegexValidator` constructed with the first -argument being the pattern: ``^[-a-zA-Z0-9_]+$``. See the section on +argument being the pattern: ``^[-a-zA-Z0-9_]+\Z``. See the section on :doc:`writing validators </ref/validators>` to see a list of what is already available and for an example of how to write a validator. |
