unified-query
Version:
Composable search input with autocompletion and a rich query-language parser for the Unified Data System
13 lines (12 loc) • 342 B
JavaScript
import { timestampAnalyzer } from './timestamp.js';
export function analyzeChanged(seg) {
const { parsed, errors } = timestampAnalyzer(seg, { allowBoolean: false });
seg.errors.push(...errors);
return {
keyword: 'changed',
parsed: parsed,
from: seg.from,
to: seg.to,
raw: seg.raw,
};
}