This commit is contained in:
Kevin Sawicki
2013-04-19 08:46:06 -07:00
parent 2d054e715e
commit abc025326f

View File

@@ -22,12 +22,12 @@ class ScopeMatcher
matches: (scope) ->
scopeSegments = scope.split('.')
if scopeSegments.length < @segments.length
return false
return false if scopeSegments.length < @segments.length
for segment, index in @segments
unless segment.matches(scopeSegments[index])
return false
return false unless segment.matches(scopeSegments[index])
true
class PathMatcher