drl990114 / MarkFlowy

Modern markdown editor application, Build fast and efficient workflows.
https://markflowy.vercel.app
GNU Affero General Public License v3.0
767 stars 38 forks source link

a bug of find/replace feature #680

Closed yu2chuan closed 4 months ago

yu2chuan commented 4 months ago

Describe the bug highlight the wrong term in the find/replace feature

To Reproduce

  1. Go to any md file in English
  2. Ctrl+F to trigger the find/replace feature
  3. input something to find and perform replace
  4. this feature will highlight the wrong term and replace what it was wrongly highlighted.

Expected behavior

Screenshots

Desktop (please complete the following information):

Additional context replacing the wrongly highlighted term will be a little bit critical.

drl990114 commented 4 months ago

I suspect it was caused by the combination of global search and single file search. If global search is not turned on and only single file search is used, is the result correct?

yu2chuan commented 4 months ago

https://drive.google.com/file/d/19w-mqipwMuH4FxBKt68uJ_KAfBF4E6T1/view?usp=drive_link I don't know when it could go wrong. Please check my test file in the link.