dovecot-2.2: lib-fts: Correct internal helper function for tr29.

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 1 17:50:20 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/6e459e8c3a5b
changeset: 18768:6e459e8c3a5b
user:      Teemu Huovila <teemu.huovila at dovecot.fi>
date:      Mon Jun 01 18:35:58 2015 +0300
description:
lib-fts: Correct internal helper function for tr29.

diffstat:

 src/lib-fts/fts-tokenizer-generic.c |  7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diffs (24 lines):

diff -r 1f609b2ad80c -r 6e459e8c3a5b src/lib-fts/fts-tokenizer-generic.c
--- a/src/lib-fts/fts-tokenizer-generic.c	Mon Jun 01 18:35:58 2015 +0300
+++ b/src/lib-fts/fts-tokenizer-generic.c	Mon Jun 01 18:35:58 2015 +0300
@@ -532,11 +532,6 @@
 */
 static bool is_one_past_end(struct generic_fts_tokenizer *tok)
 {
-
-	/* Short circuit for simple algorithm. */
-	if (tok->prev_letter == LETTER_TYPE_NONE)
-		return FALSE;
-
 	/* WB6/7 false positive detected at one past end. */
 	if (tok->prev_letter == LETTER_TYPE_MIDLETTER ||
 	    tok->prev_letter == LETTER_TYPE_MIDNUMLET ||
@@ -544,7 +539,7 @@
 	    tok->prev_letter == LETTER_TYPE_SINGLE_QUOTE )
 		return TRUE;
 
-	/* WB12/12 false positive detected at one past end. */
+	/* WB11/12 false positive detected at one past end. */
 	if (tok->prev_letter == LETTER_TYPE_MIDNUM ||
 	    tok->prev_letter == LETTER_TYPE_MIDNUMLET ||
 	    tok->prev_letter == LETTER_TYPE_APOSTROPHE ||


More information about the dovecot-cvs mailing list