search repo name instead of repository

pull/2/head
Squidly271 2017-08-17 20:51:33 -04:00
parent 6a223b56db
commit 3d6054a30c
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -1126,7 +1126,7 @@ case 'get_content':
if ( $category && ! preg_match($category,$template['Category'])) { continue; }
if ($filter) {
if (preg_match("#$filter#i", $template['Name']) || preg_match("#$filter#i", $template['Author']) || preg_match("#$filter#i", $template['Description']) || preg_match("#$filter#i", $template['Repository'])) {
if (preg_match("#$filter#i", $template['Name']) || preg_match("#$filter#i", $template['Author']) || preg_match("#$filter#i", $template['Description']) || preg_match("#$filter#i", $template['RepoName'])) {
$template['Description'] = highlight($filter, $template['Description']);
$template['Author'] = highlight($filter, $template['Author']);
$template['Name'] = highlight($filter, $template['Name']);