v2.6.1 (#169)
1、新增垃圾邮件过滤插件 2、使用使用github.com/dlclark/regexp2替换go原生的正则包 3、修复空数据导致的邮件插入失败
This commit is contained in:
1 parent
9ffbdf41c3
commit
054336fe9e
78 files changed
+1123
-329
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package match
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/dlclark/regexp2"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestRegexMatch_Match(t *testing.T) {
|
||||
re := regexp2.MustCompile("^(?!.*abc\\.com).*", 0)
|
||||
match, err := re.MatchString("aa@abc.com")
|
||||
fmt.Println(match, err)
|
||||
}
|
||||
Reference in new issue
Block a user