Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Sep 20, 2024
1 parent 9091d57 commit e6ea4de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions screenpipe-app-tauri/components/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ export const VideoComponent = memo(function VideoComponent({

const sanitizeFilePath = useCallback((path: string): string => {
const isWindows = platform() === "windows";
return (
path
.replace(/^["']|["']$/g, "")
.trim()
// only replace forward slashes with backslashes on Windows
.replace(/\//g, isWindows ? "\\" : "/")
);
if (isWindows) {
return path; // no sanitization on windows
}
return path
.replace(/^["']|["']$/g, "")
.trim()
.replace(/\//g, "/");
}, []);

const renderFileLink = () => (
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-app-tauri/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
version = "0.2.53"
version = "0.2.54"
description = ""
authors = ["you"]
license = ""
Expand Down

0 comments on commit e6ea4de

Please sign in to comment.