diff --git a/src/shared/dictation-filler-words.ts b/src/shared/dictation-filler-words.ts index 578dd64e0a1..13ce8e5acc5 100644 --- a/src/shared/dictation-filler-words.ts +++ b/src/shared/dictation-filler-words.ts @@ -18,17 +18,17 @@ FILLERS_BY_LANGUAGE.yue = FILLERS_BY_LANGUAGE.zh // For an unknown language: English fillers that are no word elsewhere ("um" is German and Portuguese, "er" German). const LANGUAGE_NEUTRAL_FILLERS = 'u+h+m*|u+m{2,}|e+r+m+|h+m+|m{3,}' -const WORD_CHAR = String.raw`[\p{L}\p{N}\p{M}_/'’\-]` +const WORD_CHAR = String.raw`[\p{L}\p{N}\p{M}_/'\u2019\-]` // A filler stands alone: nothing joins it to a word (a dot only does inside a name like "um.txt"), // and "hm?" or "eh!" is a question or a call, so it stays. const standalone = (fillers: string): string => - String.raw`(?