diff --git a/src/normalize.c b/src/normalize.c index 3e218e9d..7a16bdee 100644 --- a/src/normalize.c +++ b/src/normalize.c @@ -434,7 +434,7 @@ void add_normalized_token(char_array *array, char *str, token_t token, uint64_t char_array_append(array, " "); append_char = false; } else if (is_hyphen && options & NORMALIZE_TOKEN_DELETE_HYPHENS) { - append_char = !is_hyphen_between_letter_and_number; + append_char = is_hyphen_between_letter_and_number; } if ((is_hyphen || is_full_stop) && token.type == NUMERIC && options & NORMALIZE_TOKEN_SPLIT_ALPHA_FROM_NUMERIC && last_was_letter) {