mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
Normalise classname to remove non alpha chars
This commit is contained in:
@@ -33,4 +33,12 @@ function title_color($hex)
|
||||
} else {
|
||||
return ' white';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function className($name)
|
||||
{
|
||||
$name = preg_replace('/\PL/u', '', $name);
|
||||
return $name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user