mirror of
https://github.com/atom/atom.git
synced 2026-02-09 22:24:59 -05:00
Check all path segments for ignored names
This commit is contained in:
@@ -59,14 +59,8 @@ class Project
|
||||
deferred.promise()
|
||||
|
||||
isPathIgnored: (path) ->
|
||||
lastSlash = path.lastIndexOf('/')
|
||||
if lastSlash isnt -1
|
||||
name = path.substring(lastSlash + 1)
|
||||
else
|
||||
name = path
|
||||
|
||||
for ignored in @ignoredNames
|
||||
return true if name is ignored
|
||||
for segment in path.split("/")
|
||||
return true if _.contains(@ignoredNames, segment)
|
||||
|
||||
@ignoreRepositoryPath(path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user