mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 00:20:06 +00:00
Threat category of significant should be treated as considerable per latest NWSI
This commit is contained in:
parent
f8e0ab5b56
commit
0481281680
1 changed files with 13 additions and 1 deletions
|
|
@ -390,9 +390,21 @@ void ParseCodedInformation(std::shared_ptr<Segment> segment,
|
||||||
it->substr(threatTagIt->length());
|
it->substr(threatTagIt->length());
|
||||||
|
|
||||||
ThreatCategory threatCategory = GetThreatCategory(threatCategoryName);
|
ThreatCategory threatCategory = GetThreatCategory(threatCategoryName);
|
||||||
if (threatCategory == ThreatCategory::Unknown)
|
|
||||||
|
switch (threatCategory)
|
||||||
{
|
{
|
||||||
|
case ThreatCategory::Significant:
|
||||||
|
// "Significant" is no longer an official tag, and has largely been
|
||||||
|
// replaced with "Considerable".
|
||||||
|
threatCategory = ThreatCategory::Considerable;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ThreatCategory::Unknown:
|
||||||
threatCategory = ThreatCategory::Base;
|
threatCategory = ThreatCategory::Base;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
segment->threatCategory_ = threatCategory;
|
segment->threatCategory_ = threatCategory;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue