Skip to content

Commit

Permalink
ensure logic as strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Jan 26, 2024
1 parent d169b38 commit c11d65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit c11d65d

Please sign in to comment.