Merge pull request #1647 from z0ow/master

使用正则表达式作为过滤器,增强实用性
pull/1709/head
2dust 2021-06-28 11:34:20 +08:00 committed by GitHub
commit 672eb4b365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ using v2rayN.Tool;
using System.Diagnostics;
using System.Drawing;
using System.Net;
using System.Text.RegularExpressions;
namespace v2rayN.Forms
{
@ -928,7 +929,7 @@ namespace v2rayN.Forms
{
if (!Utils.IsNullOrEmpty(MsgFilter))
{
if (!text.Contains(MsgFilter))
if (!Regex.IsMatch(text,MsgFilter))
{
return;
}