From 0428d05fb3600988966a1e05518a550e439d2c9f Mon Sep 17 00:00:00 2001 From: Charles Loder Date: Tue, 31 Oct 2023 20:00:30 -0400 Subject: [PATCH] Update syllable vowel prop for mixed chars --- src/syllable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syllable.ts b/src/syllable.ts index 4e43646..ad8fb4e 100644 --- a/src/syllable.ts +++ b/src/syllable.ts @@ -145,8 +145,8 @@ export class Syllable extends Node { 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]; }