Skip to content

Commit 093cc28

Browse files
committed
use the last index instead of first
1 parent 003d0b0 commit 093cc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filepath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func StripExt(name string) string {
328328
return name
329329
}
330330

331-
idx := strings.IndexByte(name, '.')
331+
idx := strings.LastIndexByte(name, '.')
332332
if idx > 0 {
333333
return name[:idx]
334334
}

0 commit comments

Comments
 (0)