Feature: change final detector to match

This commit is contained in:
yicheng 2019-02-19 11:50:23 +08:00
parent 44347b29ec
commit ba5ac07a25
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ extension ConfigFileManager {
static func checkFinalRuleAndShowAlert() {
ApiRequest.getRules() {
rules in
let hasFinal = rules.reversed().contains(){$0.type == "FINAL"}
let hasFinal = rules.reversed().contains(){$0.type == "MATCH"}
if !hasFinal {
showNoFinalRuleAlert()
}