MCPcopy
hub / github.com/usebruno/bruno / getKeyString

Function getKeyString

packages/bruno-lang/v2/src/utils.js:50–53  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

48};
49
50const getKeyString = (key) => {
51 const quotableChars = [':', '"', '{', '}', ' '];
52 return quotableChars.some((char) => key.includes(char)) ? ('"' + key.replaceAll('"', '\\"') + '"') : key;
53};
54
55const getValueUrl = (url) => {
56 // Handle null, undefined, and empty strings

Callers 3

jsonToBruFunction · 0.85
jsonToCollectionBruFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected