drahnr / cargo-spellcheck

Checks all your documentation for spelling and grammar mistakes with hunspell and a nlprule based checker for grammar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸͺ™ breaks the offset calculation

drahnr opened this issue Β· comments

Describe the bug

After πŸͺ™ in a README.md markdown header, the offsets are shifted and never recover.

To Reproduce

Steps to reproduce the behaviour:

  1. A file containing # xx πŸͺ™ yy
  2. Run cargo spellcheck fix
  3. See distortion

Expected behavior

No shifted offset, work as anticipated.

Please complete the following information:

  • System: Fedora
  • Obtained: git
  • Version: 0.4.5-alpha.0

probably a last dormant len() vs chars().count() somewhere hidden.

Works with 0.4.5 release.