diff options
| author | Michael Kutowski <skytrias@protonmail.com> | 2023-11-21 21:05:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-21 21:05:16 +0100 |
| commit | 2af2a035dc0952e40cb85eb9fde0a1938e3eec1d (patch) | |
| tree | a287c8925484d208ed201eda380c1dccfa100f2f /src/string.cpp | |
| parent | f97ccca514ba25096d2879b538ca718634ebc3f0 (diff) | |
| parent | 25e92551578466548584cfa9d4a2db25de9c6248 (diff) | |
Merge branch 'odin-lang:master' into master
Diffstat (limited to 'src/string.cpp')
| -rw-r--r-- | src/string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp index 6eac4f53b..9d7ff7b89 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -205,7 +205,7 @@ gb_internal gb_inline isize string_extension_position(String const &str) { isize dot_pos = -1; isize i = str.len; while (i --> 0) { - if (str[i] == GB_PATH_SEPARATOR) + if (str[i] == '\\' || str[i] == '/') break; if (str[i] == '.') { dot_pos = i; |