mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Update cmd_overrides + stripArtifacts regex
This commit is contained in:
parent
1e6d94585a
commit
ee662ada09
@ -7,7 +7,8 @@
|
|||||||
"install_page": "https://www.expressvpn.com/support/vpn-setup/app-for-linux/",
|
"install_page": "https://www.expressvpn.com/support/vpn-setup/app-for-linux/",
|
||||||
"cmd_overrides": {
|
"cmd_overrides": {
|
||||||
"countries": "list all",
|
"countries": "list all",
|
||||||
"log": "diagnostics"
|
"log": "diagnostics",
|
||||||
|
"version": "-v"
|
||||||
},
|
},
|
||||||
"regex": {
|
"regex": {
|
||||||
"status": "\/not connected\/",
|
"status": "\/not connected\/",
|
||||||
|
@ -122,7 +122,7 @@ function saveProviderConfig($status, $binPath, $country, $id = null)
|
|||||||
*/
|
*/
|
||||||
function stripArtifacts($output, $pattern = null)
|
function stripArtifacts($output, $pattern = null)
|
||||||
{
|
{
|
||||||
$result = preg_replace('/[-\/\n\t\\\\'.$pattern.'|]/', '', $output);
|
$result = preg_replace('/[-\/\n\t\\\\'.$pattern.'|\[0m\[1;33;49m]/', '', $output);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user