| ... | @@ -4697,7 +4697,7 @@ pub fn importFile( | ... | @@ -4697,7 +4697,7 @@ pub fn importFile( |
| 4697 | if (!mem.startsWith(u8, resolved_path, resolved_root_path) or | 4697 | if (!mem.startsWith(u8, resolved_path, resolved_root_path) or |
| 4698 | // This prevents this check from triggering when the name of the | 4698 | // This prevents this check from triggering when the name of the |
| 4699 | // imported file starts with the root path's directory name. | 4699 | // imported file starts with the root path's directory name. |
| 4700 | std.fs.path.isSep(resolved_path[resolved_root_path.len])) | 4700 | !std.fs.path.isSep(resolved_path[resolved_root_path.len])) |
| 4701 | { | 4701 | { |
| 4702 | return error.ImportOutsidePkgPath; | 4702 | return error.ImportOutsidePkgPath; |
| 4703 | } | 4703 | } |