Commit c6f5832bb6

LordMZTE <lord@mzte.de>
2022-07-01 16:39:18
Module: fix inverted condition
1 parent 8c4896f
Changed files (1)
src/Module.zig
@@ -4697,7 +4697,7 @@ pub fn importFile(
     if (!mem.startsWith(u8, resolved_path, resolved_root_path) or
         // This prevents this check from triggering when the name of the
         // imported file starts with the root path's directory name.
-        std.fs.path.isSep(resolved_path[resolved_root_path.len]))
+        !std.fs.path.isSep(resolved_path[resolved_root_path.len]))
     {
         return error.ImportOutsidePkgPath;
     }