Skip to content

v3.7.13: Split multi-command apropos lines (BSD section 9)

Choose a tag to compare

@chedong chedong released this 11 Jun 07:30
· 154 commits to master since this release

Fixed

  • #129 (part 4): BSD section 9 多命令合并行解析

    BSD kernel man pages (section 9) 的 apropos 输出将多个相关命令合并在一行:

    backtrace(9), backtrace_packed(9), backtrace_user (9) — description
    

    修复前整行被当作一个名称混乱的条目。修复后正确拆分为 3 条独立记录。

Changed

  • 新增 parseAproposLines() — 统一的 apropos 行解析函数,自动处理逗号分隔的多命令格式
  • 消除重复代码 — 4 处散落的 apropos 行内联正则(~50 行)全部收敛到此函数

Previous fixes for #129

  • v3.7.10: rebuildSearchIndex() 正则兼容 macOS apropos 格式
  • v3.7.11: parseAproposLine() + getSearchPage() 搜索解析修复
  • v3.7.12: --build-index 清空 page cache

Test

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