diff --git a/models/country_rule.go b/models/country_rule.go index 4b7d155a..7428af49 100644 --- a/models/country_rule.go +++ b/models/country_rule.go @@ -3,7 +3,6 @@ package models import ( "bufio" "fmt" - "regexp" "sort" "strconv" "strings" @@ -13,6 +12,11 @@ import ( "sync" "time" + // 使用 dlclark/regexp2 PCRE 引擎的 compat 适配器,API 与 Go 标准库 regexp 一致 + // 替代 RE2 语法,以支持零宽断言等高级特性 + // 如 (?