You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the filter (r) => r.environment_name =~ /^$environment_name$/ is not valid.
The expected result is: (r) => r.environment_name =~ /^${environment_name:regex}$/, because a template variable should be enclosed by curly braces.
And the :regex prefix is necessary because if the template variable is set to return multiple values it is set as {foo,bar,baz} which is not regex friendly.
The text was updated successfully, but these errors were encountered:
Suppose I have a InfluxQL query
Where
$environment_name$
is an Grafana template variable, which is used inside an regex. Currently it is transpiled toBut the filter
(r) => r.environment_name =~ /^$environment_name$/
is not valid.The expected result is:
(r) => r.environment_name =~ /^${environment_name:regex}$/
, because a template variable should be enclosed by curly braces.And the
:regex
prefix is necessary because if the template variable is set to return multiple values it is set as{foo,bar,baz}
which is not regex friendly.The text was updated successfully, but these errors were encountered: