Skip to content

Commit

Permalink
fix: sometimes skips words
Browse files Browse the repository at this point in the history
  • Loading branch information
rust17 committed Dec 9, 2023
1 parent 80a9073 commit 5539f35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TTSServiceImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export class TTSServiceImplementation implements TTSService {
content = content.replace(/\*/g, "");
content = content.replace(/\^/g, "");
content = content.replace(/==/g, "");

//block references
content = content.replace(/\^\S*/g, "");
}
if (!this.plugin.settings.speakLinks) {
//regex from https://stackoverflow.com/a/37462442/5589264
Expand Down

0 comments on commit 5539f35

Please sign in to comment.