Copy/Sync, unify success handling, lockable options

This commit is contained in:
FTCHD
2025-01-31 16:26:51 +02:00
parent ad6d10acd6
commit 66a6a2e2aa
3 changed files with 193 additions and 88 deletions
+5
View File
@@ -26,3 +26,8 @@ export function replaceSmartQuotes(value: string) {
}
return value.replace(/[‘’‚“”„]/g, (match) => replacements[match])
}
export function getRemoteName(path?: string) {
if (!path?.includes(':')) return null // Return null for local paths
return path.split(':')[0]
}