not allow empty in ignorepaths

This commit is contained in:
fyears 2024-01-06 22:36:33 +08:00
parent d0af937fd1
commit 4d6e660f90
1 changed files with 4 additions and 1 deletions

View File

@ -1817,7 +1817,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
textArea
.setValue(`${this.plugin.settings.ignorePaths.join("\n")}`)
.onChange(async (value) => {
this.plugin.settings.ignorePaths = value.trim().split("\n");
this.plugin.settings.ignorePaths = value
.trim()
.split("\n")
.filter((x) => x.trim() !== "");
await this.plugin.saveSettings();
});
textArea.inputEl.rows = 10;