From 9fa6e49b906aeaea450caef4b788f474ca733f55 Mon Sep 17 00:00:00 2001 From: Herbert Pimentel Date: Thu, 12 Jan 2017 16:16:11 -0300 Subject: [PATCH] as agreeded to keep original regex adding only multline flag --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 009cb2a..6701735 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -33,7 +33,7 @@ export async function activate(context: vscode.ExtensionContext): Promise } // 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) { vscode.window.showErrorMessage('Error parsing PHP version. Please check the output of php --version'); return;