From d19f75d499010f1c263c69f5cabca12b7a3a6248 Mon Sep 17 00:00:00 2001 From: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:53:33 +0200 Subject: [PATCH] Fix regex for Tempo version (#74541) --- public/app/plugins/datasource/tempo/datasource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/tempo/datasource.ts b/public/app/plugins/datasource/tempo/datasource.ts index 5cd6c09cf1b..32d5668fa4b 100644 --- a/public/app/plugins/datasource/tempo/datasource.ts +++ b/public/app/plugins/datasource/tempo/datasource.ts @@ -232,7 +232,7 @@ export class TempoDatasource extends DataSourceWithBackend-`, possibly with a `-WIP` suffix (e.g., `main-12bdeff-WIP`). // Thus, if the version is in the form `-`, assume that we are on the most updated // Tempo version and thus any feature should be considered enabled - if (/^.*-[a-zA-Z0-9_]{7}(-WIP)?$/.test(actualVersion)) { + if (/^.*-[a-zA-Z0-9_]+(-WIP)?$/.test(actualVersion)) { return true; }