Skip to content

fix:search logic flaw about keyword matching in string#385

Open
AsperforMias wants to merge 1 commit into
ZCShou:masterfrom
AsperforMias:fix/search-logic-bug
Open

fix:search logic flaw about keyword matching in string#385
AsperforMias wants to merge 1 commit into
ZCShou:masterfrom
AsperforMias:fix/search-logic-bug

Conversation

@AsperforMias
Copy link
Copy Markdown
Contributor

类型 / Type

  • 新特性 New feature
  • 问题修复 Bug fix
  • 编码风格优化 Code style optimization
  • 文档更新 documentation update
  • 依赖更新 Dependencies update
  • 性能优化 Performance optimization
  • 功能增加 Enhancement function
  • 其他 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
Copy link
Copy Markdown
Contributor Author

AsperforMias commented May 16, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant