Browse Source

MatchRule: Also check for \0 in dot backtracking (#2088)

master
Samuel Thibault 7 months ago
parent
commit
91030d284e
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/libespeak-ng/dictionary.c

+ 2
- 2
src/libespeak-ng/dictionary.c View File

break; break;
case '.': case '.':
// dot in pre- section, match on any dot before this point in the word // dot in pre- section, match on any dot before this point in the word
for (p = pre_ptr; *p != ' '; p--) { for (p = pre_ptr; *p && *p != ' '; p--) {
if (*p == '.') { if (*p == '.') {
add_points = 50; add_points = 50;
break; break;
} }
} }
if (*p == ' ') if (!*p || *p == ' ')
failed = 1; failed = 1;
break; break;
case '-': case '-':

Loading…
Cancel
Save