From 521a15d80448f36ff79d5607d43d95efff8e4335 Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Fri, 12 Jan 2024 12:27:09 -0800 Subject: [PATCH] fixup --- extension/src/utils/flow-version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/src/utils/flow-version.ts b/extension/src/utils/flow-version.ts index b873ce67..41108579 100644 --- a/extension/src/utils/flow-version.ts +++ b/extension/src/utils/flow-version.ts @@ -37,7 +37,7 @@ export function extractFlowCLIVersion (buffer: Buffer | string): string { const fallbackRegex = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/ versionMatch ??= fallbackRegex.exec(buffer.toString()) if (versionMatch != null) { - vscode.window.showWarningMessage(`Unfamiliar Flow CLI version format. Assuming that version is ${versionMatch[1]}. Please report this issue to the Flow team.`) + void vscode.window.showWarningMessage(`Unfamiliar Flow CLI version format. Assuming that version is ${versionMatch[1]}. Please report this issue to the Flow team.`) return versionMatch[1] } }