MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / isPureString

Function isPureString

modules/code-generator/src/utils/nodeToJSX.ts:55–58  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

53}
54
55export function isPureString(v: string) {
56 // FIXME: 目前的方式不够严谨
57 return (v[0] === "'" && v[v.length - 1] === "'") || (v[0] === '"' && v[v.length - 1] === '"');
58}
59
60function generateAttrValue(
61 attrData: { attrName: string; attrValue: IPublicTypeCompositeValue },

Callers 2

generateAttrFunction · 0.85
generateNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…