Similar to before, reducing repetition by making .+ the default Regex for a setting

This commit is contained in:
barelyprofessional
2025-07-07 15:56:09 -05:00
parent 9b677ea23d
commit 88fef4466d
2 changed files with 1 additions and 37 deletions

View File

@@ -7,7 +7,7 @@ public class BuiltInSettingsModel
// Model here largely maps to what's in SettingDbModel, the idea is that there's a set of built-in settings that get
// populated when migrating old JSON configs and updated on start if there's a schema change (e.g. regex changed)
public required string Key { get; set; }
public required string Regex { get; set; }
public string Regex { get; set; } = ".+";
public required string Description { get; set; }
public string? Default { get; set; }
public bool IsSecret { get; set; } = false;