fix WholeWord nil check
This commit is contained in:
parent
16cd45586f
commit
707bee5d41
|
@ -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`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue