|
@@ -132,7 +132,9 @@ func FixHistory() {
|
|
|
|
|
|
for _, reportInfo := range list {
|
|
|
for _, v := range ruleList {
|
|
|
- if strings.Contains(reportInfo.Title, v.Rule) {
|
|
|
+ title := strings.ToLower(reportInfo.Title)
|
|
|
+ rule := strings.ToLower(v.Rule)
|
|
|
+ if strings.Contains(title, rule) {
|
|
|
fmt.Println(reportInfo.Title, "匹配到规则:", v.Rule)
|
|
|
reportInfo.Title = v.Title
|
|
|
reportInfo.Abstract = v.Abstract
|