From 00e9ad4e1275f58559f6af81ffb61db2d74f849e Mon Sep 17 00:00:00 2001 From: LeandroJatai Date: Tue, 30 Jul 2024 23:37:25 -0300 Subject: [PATCH] =?UTF-8?q?hot-fix:=20resolve=20imcompatibilidade=20de=20r?= =?UTF-8?q?egex=20com=20vers=C3=A3o=20de=20produ=C3=A7=C3=A3o=20do=20postg?= =?UTF-8?q?resql=209.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/norma/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/norma/forms.py b/sapl/norma/forms.py index 0a82ff284..5380b2993 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -135,7 +135,7 @@ class NormaFilterSet(django_filters.FilterSet): ) def filter_numero(self, queryset, name, value): - p = r'[\W_]' + p = r'(\W|_)' value = re.sub(p, '', value, flags=re.IGNORECASE) return queryset.annotate( numero_clean=Func(