changeset 19046:7316c0b61cb9

lib-fts: Add missing "j'" to French contractions.
author Teemu Huovila <teemu.huovila@dovecot.fi>
date Mon, 31 Aug 2015 20:23:32 +0300
parents 08b29b4b5e96
children c33868915764
files src/lib-fts/fts-filter-contractions.c src/lib-fts/test-fts-filter.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-fts/fts-filter-contractions.c	Mon Aug 31 14:24:54 2015 +0300
+++ b/src/lib-fts/fts-filter-contractions.c	Mon Aug 31 20:23:32 2015 +0300
@@ -48,6 +48,7 @@
 		/* otherwise fall through */
 	case 'c':
 	case 'd':
+	case 'j':
 	case 'l':
 	case 'm':
 	case 'n':
--- a/src/lib-fts/test-fts-filter.c	Mon Aug 31 14:24:54 2015 +0300
+++ b/src/lib-fts/test-fts-filter.c	Mon Aug 31 20:23:32 2015 +0300
@@ -59,7 +59,9 @@
 		{ "cu'", "cu'" },
 		{ "qu", "qu" },
 		{ "d", "d" },
-		{ "qu'", NULL }
+		{ "qu'", NULL },
+		{ "j'adore", "adore" },
+		{ "quelqu'un", "quelqu'un" }
 	};
 	struct fts_filter *filter;
 	const char *error;