fix WholeWord nil check

This commit is contained in:
kim 2024-05-06 15:37:28 +01:00
parent 16cd45586f
commit 707bee5d41
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ type FilterKeyword struct {
// Compile will compile this FilterKeyword as a prepared regular expression.
func (k *FilterKeyword) Compile() (err error) {
var wordBreak string
if k != nil && *k.WholeWord {
if k.WholeWord != nil && *k.WholeWord {
wordBreak = `\b`
}