diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-11-21 16:53:14 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-11-21 16:53:14 +0100 |
| commit | 25e92551578466548584cfa9d4a2db25de9c6248 (patch) | |
| tree | c0503958023729690211728b3d73e617180396d0 /src/string.cpp | |
| parent | 0424404140f628e6fec74343d3fd75092a1ef1a4 (diff) | |
Fix `string_extension_position`
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; |