aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 277a405b7..fe864a6bc 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -6023,6 +6023,12 @@ gb_internal bool determine_path_from_string(BlockingMutex *file_mutex, Ast *node
has_windows_drive = true;
}
}
+
+ for (isize i = 0; i < original_string.len; i++) {
+ if (original_string.text[i] == '\\') {
+ original_string.text[i] = '/';
+ }
+ }
}
#endif