From c289c527f994911716209d737c0138ad0da3204a Mon Sep 17 00:00:00 2001 From: Herbert Pimentel Date: Thu, 12 Jan 2017 16:52:39 -0300 Subject: [PATCH] fixes PHP version parse even when it has warnings (#46) --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index f40b20c..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]+)/); + const match = stdout.match(/^PHP ([^\s]+)/m); if (!match) { vscode.window.showErrorMessage('Error parsing PHP version. Please check the output of php --version'); return;