mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix regex for Tempo version (#74541)
This commit is contained in:
parent
1c0797f559
commit
d19f75d499
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user