MCPcopy Index your code
hub / github.com/zxlie/FeHelper / shouldWrapLongString

Function shouldWrapLongString

apps/json-format/format-lib.js:1939–1942  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1937 }
1938
1939 function shouldWrapLongString(value) {
1940 const text = String(value == null ? '' : value);
1941 return text.length > 2048 || /[\r\n]/.test(text);
1942 }
1943
1944 // 创建节点 - 直接复用webworker中的完整逻辑
1945 function createNode(value) {

Callers 1

createNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected