MCPcopy Create free account
hub / github.com/openai/plugins / indent

Function indent

plugins/shopify/skills/shopify-admin/scripts/validate.mjs:4175–4177  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

4173 return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
4174 }
4175 function indent(str) {
4176 return wrap(" ", str.replace(/\n/g, "\n "));
4177 }
4178 function hasMultilineItems(maybeArray) {
4179 var _maybeArray$some;
4180 return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;

Calls 1

wrapFunction · 0.70

Tested by

no test coverage detected