"use strict";

exports.__esModule = true;
exports.wordStartsWithMatch = wordStartsWithMatch;
var _lodash = require("lodash");
function wordStartsWithMatch(q) {
  const r = new RegExp(`(\\s+|^)${(0, _lodash.escapeRegExp)(q)}`, 'i');
  return name => r.test(name);
}
//# sourceMappingURL=wordStartsWithMatch.js.map