Skip to content

Commit

Permalink
fix path for linux and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aaalloc committed Nov 19, 2023
1 parent 05a5d94 commit 5894ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/contexts_menu/MusicCardInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function MusicCardInfo({ audio }: { audio: Audio }) {
<div>
<Label className="text-gray-500 dark:text-gray-300">Folder path</Label>
<p className="text-gray-400 dark:text-gray-200 break-all line-clamp-1">
{audio.path.substring(0, audio.path.lastIndexOf("\\"))}
{audio.path.replace(/[/\\][^/\\]*$/, "")}
</p>
</div>
</div>
Expand Down

0 comments on commit 5894ca0

Please sign in to comment.