UNPKG

unified-query

Version:

Composable search input with autocompletion and a rich query-language parser for the Unified Data System

13 lines (12 loc) 318 B
// TODO: DRY-up (duplicate from name analyzer) export function analyzeContent(seg) { // collapse all the tokens into a string let str = seg.tokens.map(t => t.raw).join(' '); return { keyword: 'content', parsed: str, from: seg.from, to: seg.to, raw: seg.raw }; }