not detect chars in name for now

This commit is contained in:
fyears 2024-09-07 15:26:19 +08:00
parent fcdbb71493
commit 716e5aa6c5

View File

@ -256,12 +256,14 @@ const ensembleMixedEnties = async (
continue; continue;
} }
const checkValidNameResult = checkValidName(key); // 20240907: users (not on windows) doesn't like it. revert back now.
if (!checkValidNameResult.result) { // TODO: platform specific but not introducing obsidian dependency into sync.ts
throw Error( // const checkValidNameResult = checkValidName(key);
`your remote folder/file name is invalid: ${checkValidNameResult.reason}` // if (!checkValidNameResult.result) {
); // throw Error(
} // `your remote folder/file name is invalid: ${checkValidNameResult.reason}`
// );
// }
finalMappings[key] = { finalMappings[key] = {
key: key, key: key,
@ -334,12 +336,14 @@ const ensembleMixedEnties = async (
continue; continue;
} }
const checkValidNameResult = checkValidName(key); // 20240907: users (not on windows) doesn't like it. revert back now.
if (!checkValidNameResult.result) { // TODO: platform specific but not introducing obsidian dependency into sync.ts
throw Error( // const checkValidNameResult = checkValidName(key);
`your local folder/file name is invalid: ${checkValidNameResult.reason}` // if (!checkValidNameResult.result) {
); // throw Error(
} // `your local folder/file name is invalid: ${checkValidNameResult.reason}`
// );
// }
// TODO: abstraction leaking? // TODO: abstraction leaking?
const localCopied = await fsEncrypt.encryptEntity( const localCopied = await fsEncrypt.encryptEntity(