Updating doku for slur filter again.

rename_additional_slurs_to_slur_filter
Dessalines 2021-10-28 12:41:59 -04:00
parent fd10d7ac0a
commit f970169d9e
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@
# Address where pictrs is available (for image hosting)
pictrs_url: "http:#localhost:8080"
# Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)`
slur_filter: "some basic regex, IE: word1|word2"
slur_filter: "(\bThis\b)|(\bis\b)|(\bsample\b)"
# Maximum length of local community and user names
actor_name_max_length: 20
}

View File

@ -42,7 +42,7 @@ pub struct Settings {
pub pictrs_url: Option<String>,
/// Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)`
#[default(None)]
#[doku(example = "some basic regex, IE: word1|word2")]
#[doku(example = "(\\bThis\\b)|(\\bis\\b)|(\\bsample\\b)")]
pub slur_filter: Option<String>,
/// Maximum length of local community and user names
#[default(20)]