Good progress with applying rules, room for improvement

Rules are applied, however some bugs remain:
- The HashMap for rules should be replaced by a Vec so they can be
  stored in order and not randomly
- For some reasons, the `%` is not removed from some rules in the
  private function `update_rules` in the `Settings` struct.
- Make it so replacements between square brackets work correctly
This commit is contained in:
2020-04-04 15:46:29 +02:00
parent bae1d86544
commit ef8c02fc97
2 changed files with 80 additions and 9 deletions

View File

@@ -18,7 +18,6 @@ extern crate simplelog;
use log::{info, warn};
use simplelog::*;
pub mod settings;
/// Initializes the crate
@@ -48,6 +47,11 @@ pub fn init() -> std::result::Result<(), log::SetLoggerError> {
TerminalMode::Mixed,
)
.unwrap(),
WriteLogger::new(
LevelFilter::Debug,
Config::default(),
File::create("core.log").unwrap(),
),
WriteLogger::new(
LevelFilter::Info,
Config::default(),