1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Allow 'readme.md' to be read as readme file in diffusion

Summary: In the title!

Test Plan: View a readme file

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5914
This commit is contained in:
Gareth Evans 2013-05-13 08:25:20 -07:00 committed by epriestley
parent 9e6da42206
commit 2d3c73495a

View file

@ -49,7 +49,7 @@ final class ConduitAPI_diffusion_browsequery_Method
$path = $result_path->getPath();
if (preg_match('/^readme(|\.txt|\.remarkup|\.rainbow)$/i', $path)) {
if (preg_match('/^readme(|\.txt|\.remarkup|\.rainbow|\.md)$/i', $path)) {
$readme = $result_path;
break;
}