Skip to content

Commit

Permalink
Update syllable vowel prop for mixed chars
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Loder committed Nov 1, 2023
1 parent bbee094 commit 0428d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/syllable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export class Syllable extends Node<Syllable> {
return noTaamim;
}

// for maters, we have to match the vowel character
const match = noTaamim.match(vowelsCaptureGroupWithSheva);
// for maters or text with mixed scripts (e.g. Hebrew and Latin), we have to extract the vowel character
const match = this.text.match(vowelsCaptureGroupWithSheva);
if (match && this.isVowelKeyOfSyllableCharToNameMap(match[0])) {
return match[0];
}
Expand Down

0 comments on commit 0428d05

Please sign in to comment.