mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-27 16:17:03 +00:00
config: Set defaults for suffix_separators and drop_characters
This patch sets common and practical defaults for the suffix_separators ("+")
and drop_character options (".").
This commit is contained in:
@@ -62,6 +62,14 @@ func Load(path string) (*Config, error) {
|
||||
c.DataDir = "/var/lib/chasquid"
|
||||
}
|
||||
|
||||
if c.SuffixSeparators == "" {
|
||||
c.SuffixSeparators = "+"
|
||||
}
|
||||
|
||||
if c.DropCharacters == "" {
|
||||
c.DropCharacters = "."
|
||||
}
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user