Skip to content

Commit

Permalink
hot-fix: resolve imcompatibilidade de regex com versão de produção do…
Browse files Browse the repository at this point in the history
… postgresql 9.6
  • Loading branch information
LeandroJatai committed Jul 31, 2024
1 parent ae44225 commit 00e9ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapl/norma/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(self, *args, **kwargs):
)

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(
Expand Down

0 comments on commit 00e9ad4

Please sign in to comment.