mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
Co-authored-by: Isabel Duan <[email protected]> Co-authored-by: Andrew Branch <[email protected]>
19 lines
265 B
Go
19 lines
265 B
Go
package tspath
|
|
|
|
import "strings"
|
|
|
|
var ignoredPaths = []string{
|
|
"/node_modules/.",
|
|
"/.git",
|
|
".#",
|
|
}
|
|
|
|
func ContainsIgnoredPath(path string) bool {
|
|
for _, pattern := range ignoredPaths {
|
|
if strings.Contains(path, pattern) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|