diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-04-27 15:02:52 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-04-27 15:02:52 +0300 |
commit | 6f54066c43172fe0197e82fb1034c9ae55d1e1f2 (patch) | |
tree | 8136e34231de96d9557f2fc0f12e499ca6c2978f /ui/room-list.go | |
parent | bc7e2d9a1c871e3fbce932f9695fc24083bc2cc4 (diff) |
Add partial deadlock detection in debug mode
Diffstat (limited to 'ui/room-list.go')
-rw-r--r-- | ui/room-list.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/room-list.go b/ui/room-list.go index 47ac182..0dc3e74 100644 --- a/ui/room-list.go +++ b/ui/room-list.go @@ -20,7 +20,8 @@ import ( "math" "regexp" "strings" - "sync" + + sync "github.com/sasha-s/go-deadlock" "maunium.net/go/mauview" "maunium.net/go/tcell" @@ -483,6 +484,7 @@ func (list *RoomList) clickRoom(line, column int, mod bool) bool { } return false } + var nsRegex = regexp.MustCompile("^[a-z]\\.[a-z](?:\\.[a-z])*$") func (list *RoomList) GetTagDisplayName(tag string) string { |