Skip to content

Commit

Permalink
feat(backend): add processing for cases where space is to be included…
Browse files Browse the repository at this point in the history
… in the name
  • Loading branch information
SARDONYX-sard committed Oct 5, 2023
1 parent 7ecc473 commit d918256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cspell.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"multispace",
"rfind",
"Skyrim",
"splitn",
"stperson",
"tauri",
"thiserror",
Expand Down
4 changes: 2 additions & 2 deletions dar2oar_core/src/fs/mapping_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ fn parse_mapping_table(table: &str) -> HashMap<String, String> {
continue;
};

let mapping: Vec<&str> = line.split_whitespace().collect();
let mapping: Vec<&str> = line.splitn(2, ' ').collect();
let section_name = match mapping.get(1) {
Some(val) => {
current_section_name = val.to_string();
current_section_name = val.trim().to_string();
idx = 0;
current_section_name.clone()
}
Expand Down

0 comments on commit d918256

Please sign in to comment.