mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
💄
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user