Skip to content

Commit

Permalink
Allow for files not in Dir.pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
natematykiewicz committed Jun 8, 2024
1 parent a29ec54 commit 3a8c7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_indexer/lib/ruby_indexer/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def apply_config(config)
sig { returns(String) }
def merge_exclude_patterns
relative_patterns = @excluded_patterns
.select { |p| p.end_with?("/**/*") }
.select { |p| p.end_with?("/**/*") && (p.start_with?(Dir.pwd) || p.start_with?("**")) }
.map { |p| p.delete_prefix("#{Dir.pwd}/") }

"#{Dir.pwd}/{#{relative_patterns.join(",")}}"
Expand Down

0 comments on commit 3a8c7fe

Please sign in to comment.