Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces $1 from generated readme with actual clients #7663

Merged
merged 11 commits into from
Oct 31, 2024
16 changes: 15 additions & 1 deletion Parser/Client/AbstractClientParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,27 @@ public static function getAvailableClients(): array
$names = [];

foreach ($regexes as $regex) {
if ('$1' === $regex['name']) {
if (false !== \strpos($regex['name'], '$1')) {
continue;
}

$names[] = $regex['name'];
}
liviuconcioiu marked this conversation as resolved.
Show resolved Hide resolved

if (static::class === MobileApp::class) {
$names = \array_merge($names, [
// Microsoft Office $1
'Microsoft Office Access', 'Microsoft Office Excel', 'Microsoft Office OneDrive for Business',
'Microsoft Office OneNote', 'Microsoft Office PowerPoint', 'Microsoft Office Project',
'Microsoft Office Publisher', 'Microsoft Office Visio', 'Microsoft Office Word',
// Podkicker$1
'Podkicker', 'Podkicker Pro', 'Podkicker Classic',
// radio.$1
'radio.at', 'radio.de', 'radio.dk', 'radio.es', 'radio.fr',
'radio.it', 'radio.pl', 'radio.pt', 'radio.se', 'radio.net',
]);
}

\natcasesort($names);

return \array_unique($names);
Expand Down
Loading