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:
@@ -49,7 +49,7 @@ final class ConduitAPI_diffusion_browsequery_Method
|
|||||||
|
|
||||||
$path = $result_path->getPath();
|
$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;
|
$readme = $result_path;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user