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:
		@@ -7,7 +7,8 @@
 | 
			
		||||
            "install_page": "https://www.expressvpn.com/support/vpn-setup/app-for-linux/",
 | 
			
		||||
            "cmd_overrides": {
 | 
			
		||||
               "countries": "list all",
 | 
			
		||||
               "log": "diagnostics"
 | 
			
		||||
               "log": "diagnostics",
 | 
			
		||||
               "version": "-v"
 | 
			
		||||
            },
 | 
			
		||||
            "regex": {
 | 
			
		||||
                "status": "\/not connected\/",
 | 
			
		||||
 
 | 
			
		||||
@@ -122,7 +122,7 @@ function saveProviderConfig($status, $binPath, $country, $id = 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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user