Capitalize default FilterList keys
This commit is contained in:
parent
dc61e93a7f
commit
681bb1c345
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ public class FilterList {
|
|||
/// <exception cref="FormatException">
|
||||
/// Thrown if there is a problem with input. The exception message specifies the reason.
|
||||
/// </exception>
|
||||
public FilterList(JObject config, string whitelistKey = "whitelist", string blacklistKey = "blacklist", string exemptKey = "exempt") {
|
||||
public FilterList(JObject config, string whitelistKey = "Whitelist", string blacklistKey = "Blacklist", string exemptKey = "Exempt") {
|
||||
if (whitelistKey != null && config[whitelistKey] != null &&
|
||||
blacklistKey != null && config[blacklistKey] != null) {
|
||||
throw new FormatException($"Cannot have both '{whitelistKey}' and '{blacklistKey}' defined at once.");
|
||||
|
|
Loading…
Reference in a new issue