| author | |
| committer | |
| log | 8c4896fb3a44d3b8025f66db7615483c30bed2b1 |
| tree | 60e84b3630e5d0201026ce82da621372d3aef23e |
| parent | 1110eafe9bd19ff69e9a7e488a7e9613fa909aeb |
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( |
| 4697 | 4697 | if (!mem.startsWith(u8, resolved_path, resolved_root_path) or |
| 4698 | 4698 | // This prevents this check from triggering when the name of the |
| 4699 | 4699 | // 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])) | |
| 4701 | 4701 | { |
| 4702 | 4702 | return error.ImportOutsidePkgPath; |
| 4703 | 4703 | } |