We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0de0cf + 1c9edf4 commit 8a2d406Copy full SHA for 8a2d406
1 file changed
lib/code_manifest/manifest.rb
@@ -56,12 +56,13 @@ def exclusion_rules
56
end
57
58
def files_with_relative_path(files)
59
- files.map do |file|
60
- pathname = Pathname.new(file)
61
- next if pathname.directory?
+ prefix = File.join(CodeManifest.root, "/")
62
63
- pathname.relative_path_from(CodeManifest.root).to_s
64
- end.compact
+ files.filter_map do |file|
+ next if File.directory?(file)
+
+ file.delete_prefix(prefix)
65
+ end
66
67
68
0 commit comments