diff options
| -rw-r--r-- | core/path/filepath/path.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/path/filepath/path.odin b/core/path/filepath/path.odin index 51ce016ca..9f1719f3b 100644 --- a/core/path/filepath/path.odin +++ b/core/path/filepath/path.odin @@ -215,6 +215,7 @@ rel :: proc(base_path, target_path: string, allocator := context.allocator) -> ( } delete(base_clean); } + if strings.equal_fold(target_clean, base_clean) { return strings.clone("."), .None; } |