mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
typescript functions on replace
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import kbn from 'app/core/utils/kbn';
|
||||
import _ from 'lodash';
|
||||
import { variableRegex } from 'app/features/templating/variable';
|
||||
import { TimeRange } from '@grafana/ui/src';
|
||||
import { TimeRange, ScopedVars } from '@grafana/ui/src';
|
||||
|
||||
function luceneEscape(value) {
|
||||
return value.replace(/([\!\*\+\-\=<>\s\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g, '\\$1');
|
||||
@@ -220,7 +220,7 @@ export class TemplateSrv {
|
||||
return values;
|
||||
}
|
||||
|
||||
replace(target, scopedVars?, format?) {
|
||||
replace(target: string, scopedVars?: ScopedVars, format?: string | Function) {
|
||||
if (!target) {
|
||||
return target;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user