as agreeded to keep original regex adding only multline flag
parent
54440c4005
commit
9fa6e49b90
|
@ -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
|
// Parse version and discard OS info like 7.0.8--0ubuntu0.16.04.2
|
||||||
const match = stdout.match(/PHP ([^\s]+[\d]+)/);
|
const match = stdout.match(/^PHP ([^\s]+)/m);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
vscode.window.showErrorMessage('Error parsing PHP version. Please check the output of php --version');
|
vscode.window.showErrorMessage('Error parsing PHP version. Please check the output of php --version');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue