Fix regex for Tempo version (#74541)

This commit is contained in:
Fabrizio
2023-09-07 15:53:33 +02:00
committed by GitHub
parent 1c0797f559
commit d19f75d499

View File

@@ -232,7 +232,7 @@ export class TempoDatasource extends DataSourceWithBackend<TempoQuery, TempoJson
// and instead it is in the form `<branch>-<revision>`, possibly with a `-WIP` suffix (e.g., `main-12bdeff-WIP`).
// Thus, if the version is in the form `<branch>-<revision>`, 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;
}