v3.7.10: Fix macOS apropos parsing
Fixed
-
#129 macOS:
php phpMan.php --build-index索引 man page 为 0 条macOS (BSD)
apropos输出格式为name(section)(无空格),与 Linux 的name (section)(有空格) 不同。rebuildSearchIndex()中的正则要求 name 和(section)之间必须有空白字符\s+,导致 macOS 上所有 man page 条目被静默跳过。修复:将正则中的
\s+改为\s*,同时兼容两种格式。修复后 macOS 上成功索引 6799 条 man page。
Test
- 296/296 单元和集成测试全部通过