Merge pull request #7 from dashaus/patch-2
Remove slash to ignore paths
This commit is contained in:
commit
cce508312e
|
@ -205,7 +205,6 @@ func (p *Project) fmt() error {
|
||||||
// Ignore validates a path
|
// Ignore validates a path
|
||||||
func (p *Project) ignore(str string) bool {
|
func (p *Project) ignore(str string) bool {
|
||||||
for _, v := range p.Watcher.Ignore {
|
for _, v := range p.Watcher.Ignore {
|
||||||
v = slash(v)
|
|
||||||
if strings.Contains(str, p.base+v) {
|
if strings.Contains(str, p.base+v) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue