diff options
author | Danielle Church <dani.church@gmail.com> | 2021-03-24 22:17:58 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2021-03-26 00:30:34 +0300 |
commit | 95ba87622e00d68270eda9e071b19737718fca16 (patch) | |
tree | e54bcd39badf77ba97c8c52ad438abffcedac690 /test/lib/link.js | |
parent | 2b3d1f983b4c75adfcff284573841a71f11f1146 (diff) |
Fix manNumberRegex in help.js
The current regex will match any .[0-9]. pattern anywhere in the path, which will give incorrect results if npm is installed to a path like .../node-v14.5.5/...
This change restricts it to only the last path element.
PR-URL: https://github.com/npm/cli/pull/2949
Credit: @dmchurch
Close: #2949
Reviewed-by: @wraithgar
Diffstat (limited to 'test/lib/link.js')
0 files changed, 0 insertions, 0 deletions