mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
Fix searching for NUT Network UPS would return no results
due to branding stuff
This commit is contained in:
parent
f09ca9a9e6
commit
7c953e31e9
BIN
archive/community.applications-2021.03.15-x86_64-1.txz
Normal file
BIN
archive/community.applications-2021.03.15-x86_64-1.txz
Normal file
Binary file not shown.
@ -237,6 +237,7 @@ function DownloadApplicationFeed() {
|
||||
$o['RepoName'] = $o['Repo'];
|
||||
$o['SortAuthor'] = $o['Author'];
|
||||
$o['SortName'] = str_replace("-"," ",$o['Name']);
|
||||
$o['SortName'] = preg_replace('/\s+/',' ',$o['SortName']);
|
||||
$o['CardDescription'] = (strlen($o['Description']) > 240) ? substr($o['Description'],0,240)." ..." : $o['Description'];
|
||||
|
||||
if ( $o['IconHTTPS'] )
|
||||
|
@ -364,6 +364,7 @@ function validURL($URL) {
|
||||
function filterMatch($filter,$searchArray,$exact=true) {
|
||||
$filterwords = explode(" ",$filter);
|
||||
foreach ( $filterwords as $testfilter) {
|
||||
if ( ! trim($testfilter) ) continue;
|
||||
foreach ($searchArray as $search) {
|
||||
if ( stripos($search,$testfilter) !== false ) {
|
||||
$foundword++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user