[numex] Fixing hyphen-initial numeric phrases that end the string

This commit is contained in:
Al
2015-07-28 03:28:44 -04:00
parent 3dc6115a4e
commit a16f0dabcb

View File

@@ -814,7 +814,7 @@ numex_result_array *convert_numeric_expressions(char *str, char *lang) {
log_debug("rule is ordinal\n"); log_debug("rule is ordinal\n");
} }
if (idx + phrase.len == len) { if (idx + phrase.start + phrase.len == len) {
number_finished = true; number_finished = true;
} }
} }