Skip to content

Commit

Permalink
remove up and down arrow from end in csv headers
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaysomani07 committed Feb 10, 2023
1 parent 486e946 commit 2da888a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/view/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ func (t *Table) importAsCSV(evt *tcell.EventKey) *tcell.EventKey {
}

func decolorize(input string) string {
re := regexp.MustCompile(`\[.*?\]|\^`)
input = strings.Replace(input, "↑", "", 1)
input = strings.Replace(input, "↓", "", 1)
re := regexp.MustCompile(`\[.*?\]`)
return re.ReplaceAllString(input, "")
}

0 comments on commit 2da888a

Please sign in to comment.