We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65810c9 + 82bc42c commit dc33f5aCopy full SHA for dc33f5a
src/DfaFilter/SensitiveHelper.php
@@ -68,7 +68,7 @@ public function setTreeByFile($filepath = '')
68
}
69
70
// 词库树初始化
71
- $this->wordTree = new HashMap();
+ $this->wordTree = $this->wordTree ?: new HashMap();
72
73
foreach ($this->yieldToReadFile($filepath) as $word) {
74
$this->buildWordToTree(trim($word));
0 commit comments