MCPcopy Create free account
hub / github.com/TruthHun/BookStack / asToken

Function asToken

static/editor.md/lib/codemirror/addon/mode/simple.js:78–85  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

76 }
77
78 function asToken(val) {
79 if (!val) return null;
80 if (typeof val == "string") return val.replace(/\./g, " ");
81 var result = [];
82 for (var i = 0; i < val.length; i++)
83 result.push(val[i] && val[i].replace(/\./g, " "));
84 return result;
85 }
86
87 function Rule(data, states) {
88 if (data.next || data.push) ensureState(states, data.next || data.push);

Callers 1

RuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected