authorgravatar for lord@mzte.deLordMZTE <lord@mzte.de> 2022-07-01 15:08:56+02:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-07-27 18:17:07+03:00
log8c4896fb3a44d3b8025f66db7615483c30bed2b1
tree60e84b3630e5d0201026ce82da621372d3aef23e
parent1110eafe9bd19ff69e9a7e488a7e9613fa909aeb

Module: use path.isSep

Co-authored-by: Veikka Tuominen <git@vexu.eu>

1 files changed, 1 insertions(+), 1 deletions(-)

src/Module.zig+1-1
......@@ -4697,7 +4697,7 @@ pub fn importFile(
46974697 if (!mem.startsWith(u8, resolved_path, resolved_root_path) or
46984698 // This prevents this check from triggering when the name of the
46994699 // imported file starts with the root path's directory name.
4700 mem.indexOfAny(u8, &.{resolved_path[resolved_root_path.len]}, "/\\") == null)
4700 std.fs.path.isSep(resolved_path[resolved_root_path.len]))
47014701 {
47024702 return error.ImportOutsidePkgPath;
47034703 }