diff options
Diffstat (limited to 'src/pattern.go')
| -rw-r--r-- | src/pattern.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pattern.go b/src/pattern.go index 636ae1ee..2627dea6 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -1,6 +1,7 @@ package fzf import ( + "fmt" "regexp" "strings" @@ -34,6 +35,11 @@ type term struct { caseSensitive bool } +// String returns the string representation of a term. +func (t term) String() string { + return fmt.Sprintf("term{typ: %d, inv: %v, text: []rune(%q), caseSensitive: %v}", t.typ, t.inv, string(t.text), t.caseSensitive) +} + type termSet []term // Pattern represents search pattern |
