Replace all instead of just replace
This commit is contained in:
parent
9c3dedad76
commit
f11c8db6d2
5 changed files with 29 additions and 7 deletions
|
|
@ -343,7 +343,7 @@ export class SyncService {
|
|||
|
||||
private getUrl(path: string): string {
|
||||
const { vaultName, remoteUri } = this.settings.getSettings();
|
||||
const safeRemoteUri = remoteUri.replace(/\/+$/, "");
|
||||
const safeRemoteUri = remoteUri.replace(/\/+$/g, "");
|
||||
return `${safeRemoteUri}/vaults/${vaultName}${path}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue