1
0
mirror of https://github.com/vrtmrz/obsidian-livesync.git synced 2025-02-07 19:30:08 +02:00
- Allow "'" and ban "#" in filenames. #27
- Fixed misspelling (one of #28)
This commit is contained in:
vorotamoroz 2021-12-22 19:38:00 +09:00
parent fc210de58b
commit abe613539b
5 changed files with 6 additions and 6 deletions

View File

@ -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",

4
package-lock.json generated
View File

@ -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",

View File

@ -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": {

View File

@ -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);

View File

@ -72,7 +72,7 @@ export function resolveWithIgnoreKnownError<T>(p: Promise<T>, def: T): Promise<T
export function isValidPath(filename: string): boolean {
// eslint-disable-next-line no-control-regex
const regex = /[\u0000-\u001f]|[\\"':?<>|*]/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, "/_"));