Commit 79852f11 authored by rinpatch's avatar rinpatch

Fix directory exclusion also excluding files without extensions

parent 301d072b
Pipeline #19737 passed with stage
in 1 minute
......@@ -44,10 +44,10 @@ defmodule FastHtml.Mixfile do
"LICENSE"
] ++
Enum.reject(
Path.wildcard("c_src/**/*.*"),
Path.wildcard("c_src/**/*"),
fn path ->
Path.extname(path) in [".so", ".a", ".o"] or
String.starts_with?(Path.basename(path), ".")
String.starts_with?(Path.basename(path), ".") or File.dir?(path)
end
)
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment