GoGoGo icon indicating copy to clipboard operation
GoGoGo copied to clipboard

fix:search logic flaw about keyword matching in string

Open AsperforMias opened this issue 6 months ago • 1 comments

类型 / Type

  • [ ] 新特性 New feature
  • [x] 问题修复 Bug fix
  • [ ] 编码风格优化 Code style optimization
  • [ ] 文档更新 documentation update
  • [ ] 依赖更新 Dependencies update
  • [ ] 性能优化 Performance optimization
  • [ ] 功能增加 Enhancement function
  • [x] 其他 Other (about what?)

描述 / Description

当搜索关键词出现在字符串开头(如"北京"的位置记录),indexOf() 返回0,但条件 > 0 会过滤掉它,导致无法搜索到

相关 ISSUE / Related ISSUE

合并检测 / Merge Check

  • [ ] 文档是否更新 If document is updated or not
  • [ ] 变更记录是否记录 If changelog is updated or not

AsperforMias avatar May 15 '26 07:05 AsperforMias

part of #381 , request to expedite the review and release new version, it may be exigency @ZCShou

AsperforMias avatar May 16 '26 06:05 AsperforMias