Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module: fix createRequireFromPath() slash logic
The trailing slash detection logic in createRequireFromPath() seemed slightly incorrect. This commit reworks the logic. PR-URL: #27634 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]>
- Loading branch information