import { escapeRegExp } from 'lodash';
export function wordStartsWithMatch(q) {
    const r = new RegExp(`(\\s+|^)${escapeRegExp(q)}`, 'i');
    return (name) => r.test(name);
}
//# sourceMappingURL=wordStartsWithMatch.js.map