UNPKG

unified-query

Version:

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

12 lines (11 loc) 265 B
export function analyzeName(seg) { // collapse all the tokens into a string let str = seg.tokens.map(t => t.raw).join(' '); return { keyword: 'name', parsed: str, from: seg.from, to: seg.to, raw: seg.raw }; }