Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information