diff --git a/manifest.json b/manifest.json index 6980338..0e122d3 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-livesync", "name": "Self-hosted LiveSync", - "version": "0.2.0", + "version": "0.2.1", "minAppVersion": "0.9.12", "description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.", "author": "vorotamoroz", diff --git a/package-lock.json b/package-lock.json index 651c953..821c560 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-livesync", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "obsidian-livesync", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "dependencies": { "diff-match-patch": "^1.0.5", diff --git a/package.json b/package.json index 0c66d91..773fa08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-livesync", - "version": "0.2.0", + "version": "0.2.1", "description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.", "main": "main.js", "scripts": { diff --git a/src/ObsidianLiveSyncSettingTab.ts b/src/ObsidianLiveSyncSettingTab.ts index a50fdcc..702879c 100644 --- a/src/ObsidianLiveSyncSettingTab.ts +++ b/src/ObsidianLiveSyncSettingTab.ts @@ -1084,7 +1084,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab { xx.addClass("mod-warning"); } } else { - containerCorruptedDataEl.createEl("div", { text: "There's no collupted data." }); + containerCorruptedDataEl.createEl("div", { text: "There is no corrupted data." }); } applyDisplayEnabled(); addScreenElement("70", containerCorruptedDataEl); diff --git a/src/utils.ts b/src/utils.ts index fc7346d..c21b59f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -72,7 +72,7 @@ export function resolveWithIgnoreKnownError(p: Promise, def: T): Promise|*]/g; + const regex = /[\u0000-\u001f]|[\\":?<>|*#]/g; let x = filename.replace(regex, "_"); const win = /(\\|\/)(COM\d|LPT\d|CON|PRN|AUX|NUL|CLOCK$)($|\.)/gi; const sx = (x = x.replace(win, "/_"));