From 032f8fc2e568e92efa8e8e84e0f86d8c618df227 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Fri, 10 May 2024 13:50:40 +0200 Subject: [PATCH] Update version number --- manifest.json | 2 +- src/repositoryConnection/RepositoryConnection.ts | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index f45812b1..b780e1db 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "quartz-syncer", "name": "Quartz Syncer", - "version": "1.1.6", + "version": "1.1.7", "minAppVersion": "0.12.0", "description": "Sync Obsidian Markdown for Quartz", "author": "Emile Bangma", diff --git a/src/repositoryConnection/RepositoryConnection.ts b/src/repositoryConnection/RepositoryConnection.ts index 8e7cb53b..841c97f6 100644 --- a/src/repositoryConnection/RepositoryConnection.ts +++ b/src/repositoryConnection/RepositoryConnection.ts @@ -213,7 +213,7 @@ export class RepositoryConnection { const normalizePath = (path: string) => { path = path.replace(/\.\.\//g, ""); - path.startsWith("/") + return path.startsWith("/") ? `${this.contentFolder}${path}` : `${this.contentFolder}/${path}`; }; @@ -316,7 +316,7 @@ export class RepositoryConnection { const normalizePath = (path: string) => { path = path.replace(/\.\.\//g, ""); - path.startsWith("/") + return path.startsWith("/") ? `${this.contentFolder}${path}` : `${this.contentFolder}/${path}`; }; @@ -359,9 +359,7 @@ export class RepositoryConnection { ); return { - path: `${this.contentFolder}/${normalizePath( - asset.path, - )}`, + path: normalizePath(asset.path), mode: "100644", type: "blob", sha: blob.data.sha,