Allow numbers in apps

This commit is contained in:
Kode 2022-03-12 10:45:37 +00:00
parent 271100c25b
commit 7fdca02af7

View file

@ -52,7 +52,8 @@ class Application extends Model
$list['null'] = 'None';
foreach($all as $app) {
$name = $app->name;
$name = preg_replace('/\PL/u', '', $name);
// $name = preg_replace('/\PL/u', '', $name);
$name = preg_replace('/[^\p{L}\p{N}]/u', '', $name);
$list['\App\SupportedApps\\'.$name.'\\'.$name] = $app->name;
}