From c11d65d9f6e614f4f47a4aa892e03bde45cac89a Mon Sep 17 00:00:00 2001 From: Mara Date: Fri, 26 Jan 2024 21:15:04 +0100 Subject: [PATCH] ensure logic as strict --- src/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.ts b/src/settings.ts index 563b647a..9ced7957 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -747,7 +747,7 @@ export class GithubPublisherSettingsTab extends PluginSettingTab { }) .setValue(slugifySetting) .onChange(async (value) => { - textSettings.links.slugify = value as "disable" | "strict" | "lower"; + textSettings.links.slugify = ["disable", "strict", "lower"].includes(value) ? value as "disable" | "strict" | "lower" : "disable"; await this.plugin.saveSettings(); }); });