Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanielle Church <dani.church@gmail.com>2021-03-24 22:17:58 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-26 00:30:34 +0300
commit95ba87622e00d68270eda9e071b19737718fca16 (patch)
treee54bcd39badf77ba97c8c52ad438abffcedac690 /test/lib/link.js
parent2b3d1f983b4c75adfcff284573841a71f11f1146 (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