diff options
| author | jockus <joakim.hentula@gmail.com> | 2021-05-27 12:04:24 +0100 |
|---|---|---|
| committer | jockus <joakim.hentula@gmail.com> | 2021-05-27 12:04:24 +0100 |
| commit | b110153b5112e926320c4895186a7d85fa7d6ac8 (patch) | |
| tree | 586345166bdf951955cc4960069a12aa318ed7a5 /core | |
| parent | b261937233a148fdc4c532adbfcd306c48151e18 (diff) | |
Fix accidental removal of newline
Diffstat (limited to 'core')
| -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; } |