diff options
| author | lukeflo | 2025-10-10 14:57:53 +0200 |
|---|---|---|
| committer | lukeflo | 2025-10-10 14:57:53 +0200 |
| commit | c69b1789fabaf149916d160922d7026f2cbe33f1 (patch) | |
| tree | da75e91e446d02f96946fb59cfb70b549180c778 /src/config.rs | |
| parent | 4779dbc5fe3712bce31bbb5f1f43c28c4c839420 (diff) | |
| download | bibiman-c69b1789fabaf149916d160922d7026f2cbe33f1.tar.gz bibiman-c69b1789fabaf149916d160922d7026f2cbe33f1.zip | |
implement const of ignored special chars for citekey formatting
* the list contains 33 special chars at the moment
* it will only affect already existing special chars in biblatex fields
* delimiter specified for citekey formatting are not affected
* char count is also not affected, ignored chars are not counted
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index a5df61c..a4e89be 100644 --- a/src/config.rs +++ b/src/config.rs @@ -35,6 +35,11 @@ use crate::{ cliargs::CLIArgs, }; +pub const IGNORED_SPECIAL_CHARS: [char; 33] = [ + '?', '!', '\\', '\'', '.', '-', '–', ':', ',', '[', ']', '(', ')', '{', '}', '§', '$', '%', + '&', '/', '`', '´', '#', '+', '*', '=', '|', '<', '>', '^', '°', '_', '"', +]; + const DEFAULT_CONFIG: &str = r##" # [general] ## Default files/dirs which are loaded on startup |
