From 5feb83679ac23ed631e604db5edb854a1736c9d1 Mon Sep 17 00:00:00 2001
From: antoliny0919 <antoliny0919@gmail.com>
Date: Thu, 7 Nov 2024 09:39:29 +0900
Subject: [PATCH] Updated validate_slug regular expression in form validation
 docs.

Outdated since 014247ad1922931a2f17beaf6249247298e9dc44.
---
 docs/ref/forms/validation.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.