Check if scope applies to type before given path (#7263)
Merge pull request 7263
This commit is contained in:
		
							parent
							
								
									72dc3a56f3
								
							
						
					
					
						commit
						88e0472160
					
				| 
						 | 
				
			
			@ -93,9 +93,9 @@ module Jekyll
 | 
			
		|||
    # path - the path to check for
 | 
			
		||||
    # type - the type (:post, :page or :draft) to check for
 | 
			
		||||
    #
 | 
			
		||||
    # Returns true if the scope applies to the given path and type
 | 
			
		||||
    # Returns true if the scope applies to the given type and path
 | 
			
		||||
    def applies?(scope, path, type)
 | 
			
		||||
      applies_path?(scope, path) && applies_type?(scope, type)
 | 
			
		||||
      applies_type?(scope, type) && applies_path?(scope, path)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    # rubocop:disable Metrics/AbcSize
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue