typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Autocorrection bug with some words ending with a dot #4608

Closed gicorada closed 3 years ago

gicorada commented 3 years ago

Describe the bug Correcting a word that ends with a dot (.) with autocorrection will add a dot at the end of the word, also if there is already a dot at the end

To Reproduce Steps to reproduce the behavior:

  1. Write a word with a dot at the end of the word and that's not recognized as correct
  2. Right-click the red-underlined word
  3. Press the "correct" word
  4. Repeat 1-3 more times
  5. You can see the bug

Expected behavior After the 3rd step in the reproduce section of this issue, the word has to be recognized as correct

Screenshots / Screencasts https://user-images.githubusercontent.com/51818710/130269435-524e47fb-af0f-4944-92a0-64b390616e11.mp4

Sample Markdown File mr.md

Desktop (please complete the following information):

Typora Version e.g: 0.11.5 (beta)

Additional context I noticed it with the Mr. word My language is Italian (Spell check is on italian when the bug occurs)

abnerlee commented 3 years ago

duplicated with #3440