diff options
| author | Adam <[email protected]> | 2026-02-09 07:24:28 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-02-09 07:38:06 -0600 |
| commit | acc53d9f6161aaee3f7fab7ef8f83af8e6a94d5e (patch) | |
| tree | 64ae5c3a82efbf7fb66b2da076d6c8c983bb7251 /packages | |
| parent | 30f0d3b3941f5c01826e9903cc4ebcb791704dec (diff) | |
| download | opencode-acc53d9f6161aaee3f7fab7ef8f83af8e6a94d5e.tar.gz opencode-acc53d9f6161aaee3f7fab7ef8f83af8e6a94d5e.zip | |
chore(app): cleanup
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/ui/src/components/file-icon.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/ui/src/components/file-icon.tsx b/packages/ui/src/components/file-icon.tsx index 11465112f..cadb7ba83 100644 --- a/packages/ui/src/components/file-icon.tsx +++ b/packages/ui/src/components/file-icon.tsx @@ -538,11 +538,7 @@ const toOpenVariant = (icon: IconName): IconName => { return icon } -const basenameOf = (p: string) => - p - .replace(/[/\\]+$/, "") - .split(/[\\/]/) - .pop() ?? "" +const basenameOf = (p: string) => p.split("\\").join("/").split("/").filter(Boolean).pop() ?? "" const folderNameVariants = (name: string) => { const n = name.toLowerCase() |
