Skip to content

Commit

Permalink
fix filtering boss names
Browse files Browse the repository at this point in the history
apostrophe and dashes are now checked
  • Loading branch information
snoww committed May 7, 2023
1 parent 28034e9 commit cb76600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ fn get_npc_entity_type(npc: &LogNewNpc) -> EntityType {
|| npc_info.grade == "epic_raid"
|| npc_info.grade == "commander")
&& npc.max_hp > 10_000
&& npc.name.chars().all(|c| c.is_alphabetic() || c.is_whitespace())
&& npc.name.chars().all(|c| c.is_alphabetic() || c.is_whitespace() || c == '\'' || c == '-')
{
EntityType::BOSS
} else {
Expand Down

0 comments on commit cb76600

Please sign in to comment.