Skip to content

Commit 163f254

Browse files
authored
Merge pull request #73 from hugocollignon/patch-1
Updating regex
2 parents b5c9f7c + 6bfb735 commit 163f254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet_forge_server/backends/directory.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def upload(file_data)
5757

5858
private
5959
def read_module_data(archive_path)
60-
file_contents = read_from_archive(archive_path, %r[^([^/]+/)?(metadata\.json|README\.md)$])
60+
file_contents = read_from_archive(archive_path, %r[^([^/]+/)?(metadata\.json|README\.md|README\.markdown)$])
6161
metadata = JSON.parse(file_contents.find {|key, value| key =~ /metadata\.json/}[1])
6262
begin
63-
readme = file_contents.find {|key, value| key =~ /README\.md/}[1]
63+
readme = file_contents.find {|key, value| key =~ /README\.md|README\.markdown/}[1]
6464
rescue
6565
readme = nil
6666
end

0 commit comments

Comments
 (0)