From 054d634661b44ebb0eb42dcd1ca4410cb0e3f238 Mon Sep 17 00:00:00 2001 From: hepeichun <946599101@qq.com> Date: Tue, 23 Aug 2022 23:03:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=98=B2=E6=AD=A2=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DfaFilter/SensitiveHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DfaFilter/SensitiveHelper.php b/src/DfaFilter/SensitiveHelper.php index 36c69a7..357f187 100644 --- a/src/DfaFilter/SensitiveHelper.php +++ b/src/DfaFilter/SensitiveHelper.php @@ -95,7 +95,7 @@ public function setTree($sensitiveWords = null) $this->wordTree = new HashMap(); foreach ($sensitiveWords as $word) { - $this->buildWordToTree($word); + $this->buildWordToTree(trim($word)); } return $this; }