Skip to content
  • Waqar Ahmed's avatar
    Only match filePath when filename matched OR pattern has '/' · 8befc8b1
    Waqar Ahmed authored and Christoph Cullmann's avatar Christoph Cullmann committed
    If filename didn't match, it is highly unlikely that filePath will get
    matched. However, if there is a '/' in the pattern, we will match the
    path anyways because then we are sure the user is trying to match the
    path.
    
    The main reason this is necessary is because matching path is really
    slow because paths are long so we try to avoid matching path as much as
    we can.
    8befc8b1