@d-i-t-a/reader 2.0.6-beta.3 → 2.0.6-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -45877,7 +45877,7 @@ var TTSModule2 = class {
45877
45877
  const sentenceEnd = getTtsQueueItemRefText(ttsQueueItemEnd);
45878
45878
  startIndex = (sentence + " " + sentenceEnd).indexOf(selectionInfo.cleanText);
45879
45879
  textToBeSpoken = sentence.slice(startIndex, sentence.length);
45880
- restOfTheText = selectionInfo.cleanText.replace(textToBeSpoken, "");
45880
+ restOfTheText = selectionInfo.cleanText.replace(textToBeSpoken, "").trim();
45881
45881
  } else if (idxEnd > idx) {
45882
45882
  let mergedSentenses = "";
45883
45883
  for (let i = idx + 1; i < idxEnd; i++) {