fixes PHP version parse even when it has warnings (#46)
parent
0062a5c814
commit
c289c527f9
|
@ -33,7 +33,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
|
|||
}
|
||||
|
||||
// Parse version and discard OS info like 7.0.8--0ubuntu0.16.04.2
|
||||
const match = stdout.match(/^PHP ([^\s]+)/);
|
||||
const match = stdout.match(/^PHP ([^\s]+)/m);
|
||||
if (!match) {
|
||||
vscode.window.showErrorMessage('Error parsing PHP version. Please check the output of php --version');
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue