mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-20 23:24:18 +02:00
Use filepath.Join rather than string concatenation
This commit is contained in:
parent
21eccfd2c3
commit
18e591bafe
1 changed files with 2 additions and 2 deletions
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
package ui
|
||||
|
||||
import "os"
|
||||
import "path/filepath"
|
||||
|
||||
func ignorePatterns(m model) []string {
|
||||
return []string{
|
||||
m.cfg.HomeDir + string(os.PathSeparator) + "Library",
|
||||
filepath.Join(m.cfg.HomeDir, "Library"),
|
||||
m.cfg.Gopath,
|
||||
"node_modules",
|
||||
".*",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue