You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Config.Log.Debug($"[{nameof(ContentFilter)}.{nameof(FindTriggerAsync)}] No content, skipping");
26
24
returnValueTask.FromResult((Piracystring?)null);
27
-
}
28
25
29
26
if(!filters.TryGetValue(ctx,outvarmatcher))
30
-
{
31
-
Config.Log.Debug($"[{nameof(ContentFilter)}.{nameof(FindTriggerAsync)}] No matcher, skipping");
32
27
returnValueTask.FromResult((Piracystring?)null);
33
-
}
34
28
35
29
Piracystring?result=null;
36
30
matcher?.ParseText(str, h =>
37
31
{
38
-
Config.Log.Debug($"[{nameof(ContentFilter)}.{nameof(FindTriggerAsync)}] Hit trigger `{str[h.Begin .. h.End]}`, validating using `{h.Value.ValidatingRegex}`");
@@ -45,13 +38,11 @@ internal static class ContentFilter
45
38
returntrue;
46
39
});
47
40
48
-
Config.Log.Debug($"[{nameof(ContentFilter)}.{nameof(FindTriggerAsync)}] No result, trying on clean content…");
49
41
if(resultisnull&&ctx==FilterContext.Chat)
50
42
{
51
43
str=str.StripInvisibleAndDiacritics();
52
44
matcher?.ParseText(str, h =>
53
45
{
54
-
Config.Log.Debug($"[{nameof(ContentFilter)}.{nameof(FindTriggerAsync)}] Hit trigger `{str[h.Begin .. h.End]}`, validating using `{h.Value.ValidatingRegex}`");
0 commit comments