From 89d0fd571808c1a9be32c1708ff0211fad5d79a5 Mon Sep 17 00:00:00 2001 From: Al Date: Sat, 3 Oct 2015 16:40:06 -0400 Subject: [PATCH] [fix] Alpha-numeric splitting --- src/normalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normalize.c b/src/normalize.c index 45eb887c..4b388dbf 100644 --- a/src/normalize.c +++ b/src/normalize.c @@ -202,7 +202,7 @@ void add_normalized_token(char_array *array, char *str, token_t token, uint64_t append_char = false; } - if ((is_hyphen || is_full_stop) && options & NORMALIZE_TOKEN_SPLIT_ALPHA_FROM_NUMERIC && last_was_letter) { + if ((is_hyphen || is_full_stop) && token.type == NUMERIC && options & NORMALIZE_TOKEN_SPLIT_ALPHA_FROM_NUMERIC && last_was_letter) { ptr += char_len; idx += char_len; append_if_not_numeric = is_hyphen ? "-" : ".";