mirror of https://github.com/2dust/v2rayN
使用正则表达式作为过滤器,增强实用性
parent
5b271108c0
commit
c9a150565d
|
@ -11,6 +11,7 @@ using v2rayN.Tool;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace v2rayN.Forms
|
namespace v2rayN.Forms
|
||||||
{
|
{
|
||||||
|
@ -928,7 +929,7 @@ namespace v2rayN.Forms
|
||||||
{
|
{
|
||||||
if (!Utils.IsNullOrEmpty(MsgFilter))
|
if (!Utils.IsNullOrEmpty(MsgFilter))
|
||||||
{
|
{
|
||||||
if (!text.Contains(MsgFilter))
|
if (!Regex.IsMatch(text,MsgFilter))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue