(requestVersion, word string)
| 344 | } |
| 345 | |
| 346 | func (m *Option) IsResponseEmptyForAPP(requestVersion, word string) (yes bool) { |
| 347 | version := GetOptionValue("CheckingAppVersion", "") |
| 348 | if version == "" { |
| 349 | return |
| 350 | } |
| 351 | if strings.ToLower(strings.TrimSpace(requestVersion)) == version { |
| 352 | words := strings.Split(GetOptionValue("CheckingForbidWords", ""), ",") |
| 353 | word = strings.ToLower(strings.TrimSpace(word)) |
| 354 | for _, item := range words { |
| 355 | item = strings.ToLower(strings.TrimSpace(item)) |
| 356 | if strings.Contains(word, item) { |
| 357 | return true |
| 358 | } |
| 359 | } |
| 360 | } |
| 361 | return |
| 362 | } |
no test coverage detected