MCPcopy Create free account
hub / github.com/chhoumann/quickadd / getValueVariableBaseName

Function getValueVariableBaseName

src/utils/valueSyntax.ts:102–106  ·  view source on GitHub ↗
(variableKey: string)

Source from the content-addressed store, hash-verified

100}
101
102export function getValueVariableBaseName(variableKey: string): string {
103 const delimiterIndex = variableKey.indexOf(VALUE_LABEL_KEY_DELIMITER);
104 if (delimiterIndex === -1) return variableKey;
105 return variableKey.slice(0, delimiterIndex);
106}
107
108function findCaseInsensitiveMatch(
109 vars: Map<string, unknown>,

Callers 3

getVariableValueMethod · 0.90
getVariableValueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected