summaryrefslogtreecommitdiff
path: root/internal/ui/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ui/table.go')
-rw-r--r--internal/ui/table.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go
index 03c4774..1314eb1 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -7,6 +7,7 @@ import (
"regexp"
"strconv"
"strings"
+ "sync"
"time"
"github.com/charmbracelet/x/ansi"
@@ -26,6 +27,7 @@ var priorityOptions = []string{"H", "M", "L", ""}
var (
urlRegex = regexp.MustCompile(`https?://\S+`)
searchRegexCache = make(map[string]*regexp.Regexp, 16)
+ searchRegexMu sync.RWMutex
)
type cellMatch struct {