From 3aef161cb859c257300bf75d2c87b0689cb9a063 Mon Sep 17 00:00:00 2001 From: Courville Software Date: Sat, 14 Feb 2026 17:06:44 +0100 Subject: [PATCH] fix title sort with "l'" in french regex should not impose a space after "l'" otherwise detection for "L'arbre" fails. --- cps/config_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/config_sql.py b/cps/config_sql.py index c73a6cf07..3d64d8185 100644 --- a/cps/config_sql.py +++ b/cps/config_sql.py @@ -85,7 +85,7 @@ class _Settings(_Base): config_read_column = Column(Integer, default=0) config_title_regex = Column(String, default=r'^(A|The|An|Der|Die|Das|Den|Ein|Eine' - r'|Einen|Dem|Des|Einem|Eines|Le|La|Les|L\'|Un|Une)\s+') + r"|Einen|Dem|Des|Einem|Eines|Le|La|Les|L'|Un|Une)(\s+|(?<='))") config_theme = Column(Integer, default=0) config_log_level = Column(SmallInteger, default=logger.DEFAULT_LOG_LEVEL)