mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix path.name failing to remove extension
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ base :: proc(path: string, new := false, allocator := context.allocator) -> stri
|
|||||||
name :: proc(path: string, new := false, allocator := context.allocator) -> string {
|
name :: proc(path: string, new := false, allocator := context.allocator) -> string {
|
||||||
if path == "" do return "";
|
if path == "" do return "";
|
||||||
|
|
||||||
dot := len(path);
|
end := len(path) - 1;
|
||||||
end := dot - 1;
|
dot := end;
|
||||||
|
|
||||||
for i := end; i >= 0; i -= 1 {
|
for i := end; i >= 0; i -= 1 {
|
||||||
switch path[i] {
|
switch path[i] {
|
||||||
|
|||||||
Reference in New Issue
Block a user