diff options
author | David Walker <d0sboots@gmail.com> | 2022-03-24 12:10:21 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2022-03-30 10:09:26 +0300 |
commit | cc0a2ec9999b956ea654deaf68fd49ae4bf1a1c0 (patch) | |
tree | 8f00923e11546ff85ff2413400b9d4cfa33bbb01 /workspaces/libnpmfund | |
parent | 5b4cbb2175bfa35e347fe94e21d49a05ea64ead1 (diff) |
fix: work better with system manpages (#4610)
In certain edge cases, the glob could find files that manNumberRegex wouldn't match.
A possible solution would be to try to bring the two closer, but since globs and regexes are different syntaxes, the two will never be exactly the same.
It's always asking for bugs; better to just handle the issue directly.
In addition, when npm is installed globally in a system directory, the
glob can find other manpages with similar names.
For instance "install.1", "init.1", etc. Preferring low-numbered
sections isn't enough in these cases; it's also necessary to prefer
the pages prefixed with "npm-".
Diffstat (limited to 'workspaces/libnpmfund')
0 files changed, 0 insertions, 0 deletions