We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65810c9 commit 82bc42cCopy full SHA for 82bc42c
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