MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / previewable

Function previewable

packages/ast/previewable/index.js:6–15  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

4const IGNORED_TYPES = ['root', 'text'];
5
6const previewable = (message) => {
7 let boolean = false;
8 const tree = parse.linen(message);
9 walk(tree, (node) => {
10 if (!IGNORED_TYPES.includes(node.type)) {
11 boolean = true;
12 }
13 });
14 return boolean;
15};
16
17module.exports = previewable;

Callers

nothing calls this directly

Calls 1

walkFunction · 0.85

Tested by

no test coverage detected