MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / splitTerm

Function splitTerm

src/Components/FAQ/FAQ.jsx:159–162  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

157];
158
159function splitTerm(s) {
160 const i = s.indexOf(": ");
161 return i < 0 ? {term: s, def: ""} : {term: s.slice(0, i), def: s.slice(i + 2)};
162}
163
164function FaqAccordion({question, children}) {
165 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected