diff --git a/bkmonitor-timeseries-datasource/src/datasource/datasource.ts b/bkmonitor-timeseries-datasource/src/datasource/datasource.ts index 885d140..dd19164 100644 --- a/bkmonitor-timeseries-datasource/src/datasource/datasource.ts +++ b/bkmonitor-timeseries-datasource/src/datasource/datasource.ts @@ -715,7 +715,7 @@ export default class DashboardDatasource extends DataSourceApi, ) { - const regex = /\$([\w.]+)|\[\[([\s\S]+?)\]\]/g; + const regex = /\$([\w]+)|\[\[([\s\S]+?)\]\]/g; const tagRegx = /(\$(tag_|dim_)\$[\w.]+)/gm; let aliasNew = alias; aliasNew = alias.replace(tagRegx, (match: any, g1: any, g2: any) => { @@ -746,7 +746,10 @@ export default class DashboardDatasource extends DataSourceApi