From 2f340402288a207eaf95e9de841540bedfcfeae9 Mon Sep 17 00:00:00 2001 From: Bastien Le Querrec <blq@laquadrature.net> Date: Sat, 18 Jan 2025 15:28:53 +0100 Subject: [PATCH] =?UTF-8?q?pref38:=20am=C3=A9liore=20le=20regex=20de=20d?= =?UTF-8?q?=C3=A9tection=20de=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Attrap_pref38.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Attrap_pref38.py b/Attrap_pref38.py index d2110c9..b040921 100644 --- a/Attrap_pref38.py +++ b/Attrap_pref38.py @@ -20,7 +20,7 @@ class Attrap_pref38(Attrap_prefdpt): Attrap_prefdpt.select_widgets.append( Attrap_prefdpt.DptSelectWidget( 'menu_deroulant', - regex='.*([0-9]*(?:er|ER)? [A-Za-zéÉûÛ]* [0-9]*)', + regex='([0-9]{1,2}[er]{0,1} [a-zéû]* [0-9]{4})', css_path='select#-liste-docs' ) ) -- GitLab