mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-04 16:38:24 +02: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:
parent
9e6da42206
commit
2d3c73495a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue