Skip to content

Commit

Permalink
Min prefix score should be zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Sep 11, 2015
1 parent f181eb9 commit 1d978ee
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -263,7 +263,7 @@ static List<FormattedText> format(List<String> tokens) {
texts.add(new FormattedText(coef + sign, STYLE_SUPSCRIPT));
} else {
// optional prefix
int i = findPrefix(ITAL_PREFIX_TRIE, token, 0, -1);
int i = findPrefix(ITAL_PREFIX_TRIE, token, 0, 0);
// find a numeric suffix to subscript
int j = token.length();
while (j > 0 && isDigit(token.charAt(j - 1)))
Expand Down

0 comments on commit 1d978ee

Please sign in to comment.