Skip to content

Commit 355a0ef

Browse files
committed
[修改] 修改敏感词过滤的BUG
1 parent 0d2d278 commit 355a0ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GameFrameX.Utility/IllegalWordDetection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections;
1+
using System.Collections;
22
using System.Text;
33
using GameFrameX.Foundation.Extensions;
44
using GameFrameX.Foundation.Logger;
@@ -576,6 +576,6 @@ public static unsafe bool DetectIllegalWords(string text, bool returnWhenFindFir
576576
}
577577
}
578578

579-
return false;
579+
return findResult.Count > 0;
580580
}
581581
}

0 commit comments

Comments
 (0)