MCPcopy
hub / github.com/deepops-ai/deepops / hasVariableFormat

Function hasVariableFormat

ui/src/utils/variable.ts:23–25  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

21import { isEmpty } from "./validate";
22
23export const hasVariableFormat = (s: string) => {
24 return isEmpty(s) ? false : s.includes("${")
25}
26
27// replace ${xxx} format with corresponding variable
28// extraVars: datav preserved variables, such as __curentValue__

Callers 4

getDatasourceFunction · 0.90
queryDataFunction · 0.90
TraceSearchPanelFunction · 0.90
loadOperationsFunction · 0.90

Calls 1

isEmptyFunction · 0.90

Tested by

no test coverage detected