Skip to content

module: fix createRequireFromPath() slash logic

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/slash into master

The trailing slash detection logic in createRequireFromPath() seemed slightly incorrect. This commit reworks the logic.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading