Skip to content

v3.7.15: Dedup apropos output for macOS (#129)

Choose a tag to compare

@chedong chedong released this 11 Jun 07:44
· 159 commits to master since this release

Fixed

  • #129 (part 6): macOS apropos 返回重复条目

    macOS 上 man page 同时存在于 /usr/share/man/(系统)和 /opt/homebrew/share/man/(Homebrew),导致 apropos 对每条记录返回两次。section 7 的 79 行中有 32 行是重复的,搜索结果每条都显示两遍。

    修复:rebuildSearchIndex()getSearchPage()exec(apropos) 后加 array_unique() 去重。

Complete #129 fix history

  • v3.7.10: rebuildSearchIndex() macOS regex
  • v3.7.11: Search parsing regex
  • v3.7.12: Cache clearing
  • v3.7.13: Multi-command split (BSD section 9)
  • v3.7.14: Markdown/HTML render split
  • v3.7.15: apropos duplicate dedup

Test

  • 296/296 单元和集成测试全部通过